/* === Theme Toggle Button === */
.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}

/* Sun icon (shown in dark mode) */
.theme-toggle .sun-icon {
    display: none;
}

/* Moon icon (shown in light mode) */
.theme-toggle .moon-icon {
    display: block;
}

/* Show/hide icons based on theme */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* System preference detection for icons */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun-icon {
        display: block;
    }
    
    :root:not([data-theme="light"]) .theme-toggle .moon-icon {
        display: none;
    }
} 

/* === Right Header Icons Container === */
.header-icons-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px; /* Spacing between icons */
}

/* === Generic Header Icon Styling === */
.header-icon-link,
.notification-bell {
    position: relative;
    background: var(--card-bg);
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.header-icon-link:hover,
.notification-bell:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.header-icon-link svg,
.notification-bell svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}

[data-theme="dark"] .header-icon-link svg,
[data-theme="dark"] .notification-bell svg {
    stroke: var(--text-light);
}


/* === Admin Notification Bell (Specifics) === */
.admin-notification-wrapper {
    /* Wrapper is no longer needed for positioning */
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color, #ff4444);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    min-width: 20px;
    font-family: var(--font-body);
}

/* Animation for new notifications */
@keyframes notification-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notification-bell.has-new {
    animation: notification-pulse 2s infinite;
}

/* === Language Toggle Button (Future) === */
.language-toggle {
    /* Re-integrate with .header-icon-link styling when implemented */
}

/* Adjust position for smaller screens */
@media (max-width: 768px) { 
    .theme-toggle {
        top: 15px;
        left: 15px;
    }
    
    .header-icons-right {
        top: 15px;
        right: 15px;
        gap: 8px;
    }
} 