:root {
    --primary: #0099ff;
    --on-primary: #ffffff;
    --primary-container: #003366;
    --on-primary-container: #cce3ff;
    --secondary: #001a33;
    --on-secondary: #ffffff;
    --background: #050b14;
    --on-background: #e2e8f0;
    --surface: rgba(10, 20, 35, 0.6);
    --on-surface: #f1f5f9;
    --on-surface-variant: #94a3b8;
    --outline: #1e293b;
    --outline-variant: rgba(0, 153, 255, 0.2);
}

/* Shared Styles */
.glass-panel {
    background: rgba(18, 33, 49, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 153, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.light .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 102, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.1);
}

.neon-border {
    border: 1px solid #0099ff;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.2);
}

.light .neon-border {
    border-color: #0066ff;
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.15);
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
}

.light .glow-text {
    text-shadow: 0 0 10px rgba(0, 218, 248, 0.3);
}

.gradient-mesh {
    background: radial-gradient(circle at 0% 0%, rgba(0, 224, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(112, 0, 255, 0.05) 0%, transparent 50%);
}

.light .gradient-mesh {
    background: radial-gradient(circle at 0% 0%, rgba(0, 218, 248, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(112, 0, 255, 0.02) 0%, transparent 50%);
}

/* Language specific fonts/styles */
[lang="ar"],
[lang="ku"] {
    font-family: 'Inter', sans-serif;
    /* Replace with localized fonts if available */
}

/* Light Mode Overrides */
.light body {
    background-color: #ecf1f6;
    color: #1e293b;
}

.light .text-primary {
    color: #0066ff;
}

.light .bg-primary {
    background-color: #0066ff;
    color: #ffffff;
}

.light .text-on-surface-variant {
    color: #475569;
}

.light .bg-surface-container-low {
    background-color: #ffffff;
}

.light .bg-surface-container-high {
    background-color: #f1f5f9;
}

.light .border-outline-variant {
    border-color: #e2e8f0;
}

.light .bg-surface\/60 {
    background-color: rgba(255, 255, 255, 0.8);
}

.light .bg-surface-container-lowest {
    background-color: #ffffff;
}

.light .text-on-surface {
    color: #1e293b;
}

/* Google Translate Overrides */
#google_translate_element {
    height: 38px;
    display: flex;
    align-items: center;
}

#google_translate_element .goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid rgba(0, 153, 255, 0.2) !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.light #google_translate_element .goog-te-gadget-simple {
    border-color: rgba(0, 102, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
    border-color: #0099ff !important;
    background-color: rgba(0, 153, 255, 0.05) !important;
}

.light #google_translate_element .goog-te-gadget-simple:hover {
    border-color: #0066ff !important;
    background-color: rgba(0, 102, 255, 0.05) !important;
}

#google_translate_element .goog-te-gadget-simple span {
    color: var(--on-surface-variant) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

#google_translate_element .goog-te-menu-value img {
    display: none !important;
}

#google_translate_element .goog-te-gadget-simple img {
    display: none !important;
}

#google_translate_element .goog-te-menu-value span:nth-child(3) {
    border-left: 1px solid rgba(186, 242, 255, 0.2) !important;
    margin-left: 8px !important;
    padding-left: 8px !important;
    color: #00daf8 !important;
}

.light #google_translate_element .goog-te-menu-value span:nth-child(3) {
    border-left-color: rgba(0, 104, 119, 0.2) !important;
    color: #008fa2 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

/* Custom Translate Icon Injection */
#google_translate_element .goog-te-gadget-simple::before {
    content: "\e8e2" !important; /* Material Symbol for Translate */
    font-family: 'Material Symbols Outlined' !important;
    font-size: 20px !important;
    margin-right: 4px !important;
    color: #0099ff !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.light #google_translate_element .goog-te-gadget-simple::before {
    color: #0066ff !important;
}

/* Dropdown menu styling */
.goog-te-menu-frame {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(186, 242, 255, 0.1) !important;
}

.goog-te-menu2 {
    background-color: #051424 !important;
    border: none !important;
    padding: 8px !important;
}

.light .goog-te-menu2 {
    background-color: #ffffff !important;
}

.goog-te-menu2-item div, 
.goog-te-menu2-item:link div, 
.goog-te-menu2-item:visited div, 
.goog-te-menu2-item:active div {
    color: #baf2ff !important;
    background-color: transparent !important;
    font-family: 'Inter', sans-serif !important;
}

.light .goog-te-menu2-item div {
    color: #1e293b !important;
}

.goog-te-menu2-item-selected div, 
.goog-te-menu2-item-selected:link div, 
.goog-te-menu2-item-selected:visited div, 
.goog-te-menu2-item-selected:active div {
    color: #00daf8 !important;
    font-weight: bold !important;
}

.light .goog-te-menu2-item-selected div {
    color: #008fa2 !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.active {
    opacity: 1;
}

.scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-up.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

