/* Enhanced Theme Toggle Styling */

/* Floating Action Button style for theme toggles */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover state - expand buttons slightly */
.theme-toggle:hover button {
    opacity: 1;
}

.theme-toggle button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.theme-toggle button:hover {
    transform: translateY(-4px) scale(1.05);
    opacity: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.theme-toggle button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle button .material-symbols-rounded {
    margin-right: 0;
    font-size: 28px;
}

/* Tooltip for buttons */
.theme-toggle button::before {
    content: attr(title);
    position: absolute;
    right: 64px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(-10px);
    white-space: nowrap;
}

.theme-toggle button:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.theme-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Notification for theme changes - Clean & Minimal Style */
.theme-notification {
    position: fixed;
    top: 40px;
    left: 46%;
    transform: translateX(-50%) translateY(-60px);
    background-color: #333333;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    max-width: 160px;
    max-height: 65px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease-out;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .theme-toggle {
        bottom: 16px;
        right: 16px;
        gap: 12px;
    }
    
    .theme-toggle button {
        width: 48px;
        height: 48px;
    }
    
    .theme-toggle button .material-symbols-rounded {
        font-size: 24px;
    }
    
    /* Hide tooltips on mobile */
    .theme-toggle button::before {
        display: none;
    }
}

/* Make sure buttons don't overlap with candidate info bar in exam */
#exam-screen .theme-toggle {
    bottom: 24px;
    right: 24px;
}
