
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #6200ea;
    --secondary-color: #FF9800; /* Amber color for Print button */
    --input-bg: #f9f9f9;
    --border-color: #dddddd;
    --button-bg: #6200ea;
    --button-text: #ffffff;
    --error-color: #ff4d4f;
    --transition-speed: 0.3s;
    --navbar-height: 60px;
    --sidebar-width: 240px;
    --resizer-width: 5px;
    --min-left-width: 300px;
    --max-left-width: 600px;
    --message-box-shadow: rgba(0, 0, 0, 0.1); /* Black shadow for light mode */
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --secondary-color: #FFB74D; /* Lighter amber for dark mode */
    --input-bg: #1e1e1e;
    --border-color: #333333;
    --button-bg: #bb86fc;
    --button-text: #121212;
    --error-color: #ff6b6b;
    --message-box-shadow: rgba(255, 255, 255, 0.1); /* White shadow for dark mode */
}


/* Language toggle styles */
#google_translate_element {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    background-color: black;
    color: white;
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

#google_translate_element select {
    
    height: 40px;
    background-color: black;
    color: white;
    border: none;
    
}

#custom-language-list {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    background-color: black;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0px 20px rgb(252, 252, 252, 0.5);
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    list-style-type: none;
}

#custom-language-list li {
    padding: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: white;
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#custom-language-list li:hover {
    background-color: #8a2be2; /* Lighter purple for hover state */
}

/* Dark mode styles */
body.dark-mode #google_translate_element {
    background-color: #1e1e1e; /* Darker background for dark mode */
}

body.dark-mode #custom-language-list {
    background-color: #1e1e1e;
    border-color: #555;
}

body.dark-mode #custom-language-list li:hover {
    background-color: #333;
}

/* Hide the default Google Translate widget */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0 !important;
}
