/* Theme Toggle Styles */

.theme-selector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.theme-options {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
}

.theme-options.show {
    display: flex;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-option:hover {
    background: rgba(255, 107, 0, 0.1);
}

.theme-option i {
    width: 20px;
    text-align: center;
}

.theme-option.active {
    background: rgba(255, 107, 0, 0.2);
}

/* Language Selector Styles */

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.language-toggle-btn {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 1.2rem;
}

.language-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.language-toggle-btn .flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    display: block;
}

.language-options {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 150px;
}

.language-options.show {
    display: flex;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: rgba(255, 107, 0, 0.1);
}

.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation indicator */
.nav-indicator {
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 30px; /* Rounded corners as requested */
    transition: all 0.3s ease;
    transform-origin: left;
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.5); /* Add subtle glow */
}

.nav-item {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .theme-selector {
        margin: 1rem auto;
    }
}