/* Header Component Styles - Navigation and Notifications */

/* Notification Badge */
#notification-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Notifications (992px and up) */
@media (min-width: 992px) {
    #notification-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: -300px !important;
        right: auto !important;
        width: 400px !important;
        max-width: 400px !important;
        max-height: 600px !important;
        overflow-y: auto !important;
        z-index: 1050 !important;
        background-color: white !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 0.375rem !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        margin-top: 0.5rem !important;
        display: none !important;
    }
    
    /* Show on hover */
    .navbar-nav .dropdown:hover #notification-dropdown {
        display: block !important;
    }
    
    /* Hide by default */
    #notification-dropdown.show {
        display: none !important;
    }
    
    /* Hover effects for all dropdowns */
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

/* Mobile Notifications (below 992px) */
@media (max-width: 991.98px) {
    #notification-dropdown {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: none !important;
    }
    
    /* Show on click */
    #notification-dropdown.show {
        display: block !important;
    }
    
    /* Allow Bootstrap dropdowns to work on mobile */
    .navbar-nav .dropdown .dropdown-menu {
        display: none;
    }
    
    .navbar-nav .dropdown .dropdown-menu.show {
        display: block !important;
    }
    
    /* Disable hover effects on mobile for all dropdowns */
    .navbar-nav .dropdown:hover .dropdown-menu:not(.show) {
        display: none !important;
    }
    
    /* Ensure mobile dropdowns are properly positioned */
    .navbar-nav .dropdown .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
    
    /* Mobile dropdown items styling */
    .navbar-nav .dropdown .dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    }
    
    .navbar-nav .dropdown .dropdown-menu .dropdown-item:last-child {
        border-bottom: none !important;
    }
}

/* Common Notification Styling */
#notification-dropdown .dropdown-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

#notification-dropdown .dropdown-item {
    border-bottom: 1px solid #f1f3f4;
    padding: 1rem;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

#notification-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Ensure notifications stay within screen bounds */
#notification-dropdown {
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Dark Mode Styling for Notification Dropdown */
body.dark-mode #notification-dropdown {
    background-color: #1e293b !important;
    border: 1px solid #475569 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode #notification-dropdown .dropdown-header {
    background-color: #0f172a !important;
    border-bottom: 1px solid #475569 !important;
    color: #f1f5f9 !important;
}

body.dark-mode #notification-dropdown .dropdown-item {
    background-color: #1e293b !important;
    border-bottom: 1px solid #475569 !important;
    color: #f1f5f9 !important;
}

body.dark-mode #notification-dropdown .dropdown-item:hover {
    background-color: #475569 !important;
    color: #f1f5f9 !important;
}

body.dark-mode #notification-dropdown .dropdown-item:last-child {
    border-bottom: none !important;
}

body.dark-mode #notification-dropdown .dropdown-divider {
    border-color: #475569 !important;
}

body.dark-mode #notification-dropdown .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode #notification-dropdown .notification-title {
    color: #f1f5f9 !important;
}

body.dark-mode #notification-dropdown .notification-message {
    color: #e2e8f0 !important;
}

/* Dark mode styling for notification buttons */
body.dark-mode #notification-dropdown .btn-outline-secondary {
    background-color: #475569 !important;
    border-color: #64748b !important;
    color: #f1f5f9 !important;
}

body.dark-mode #notification-dropdown .btn-outline-secondary:hover {
    background-color: #64748b !important;
    border-color: #94a3b8 !important;
    color: #f1f5f9 !important;
}

/* Dark mode styling for notification icons */
body.dark-mode #notification-dropdown .text-info {
    color: #60a5fa !important;
}

body.dark-mode #notification-dropdown .text-warning {
    color: #fbbf24 !important;
}

body.dark-mode #notification-dropdown .text-danger {
    color: #f87171 !important;
}

body.dark-mode #notification-dropdown .text-primary {
    color: #818cf8 !important;
}









