/**
 * Notifications System CSS
 * Extracted from base.html.twig - Notification Dropdown & Badge System
 * 
 * Description:
 * Complete styling for the real-time notification system including
 * dropdown menu, notification items, badges, icons, and animations.
 * 
 * Features:
 * - Notification badge positioning
 * - Dropdown menu with custom scrollbar
 * - Notification items with hover states
 * - Unread notification highlighting
 * - Icon and content styling
 * - Smooth animations (slideIn effect)
 * - High specificity for Bootstrap override
 */

/* ===================================
   Utility Classes
   =================================== */

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* ===================================
   Notification Badge Positioning
   =================================== */

#notificationsBadge {
    top: -2px !important;
    right: -6px !important;
    transform: none !important;
    margin: 0 !important;
}

/* ===================================
   Notification Icon Alignment
   =================================== */

#notificationsDropdown {
    line-height: 1 !important;
}

#notificationsDropdown .bi-bell {
    vertical-align: middle;
}

/* ===================================
   Notifications Dropdown Menu Styles
   High specificity to prevent overrides
   =================================== */

#mainNavbar #notificationsDropdownWrapper .dropdown-menu {
    background: white !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    min-width: 380px !important;
    max-width: 420px !important;
}

#mainNavbar #notificationsDropdownWrapper .dropdown-menu .bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
}

#mainNavbar #notificationsDropdownWrapper .dropdown-menu .bg-light h6 {
    color: #2d3748 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

#mainNavbar #notificationsDropdownWrapper .dropdown-menu .border-top {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
}

/* ===================================
   Notifications List Scrollbar
   =================================== */

#notificationsList {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    background: white !important;
}

#notificationsList::-webkit-scrollbar {
    width: 6px;
}

#notificationsList::-webkit-scrollbar-track {
    background: #f7fafc;
}

#notificationsList::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

#notificationsList::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ===================================
   Notification Item Base Styles
   =================================== */

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f1f3f5;
    position: relative;
    background: white !important;
}

.notification-item:last-child {
    border-bottom: none;
}

/* ===================================
   Notification Item Hover States
   =================================== */

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item.unread {
    background-color: #f0f7ff !important;
}

.notification-item.unread:hover {
    background-color: #e6f2ff !important;
}

/* ===================================
   Notification Icon Styling
   =================================== */

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* ===================================
   Notification Content Area
   =================================== */

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #2d3748 !important;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-time {
    font-size: 0.75rem;
    color: #718096 !important;
    display: flex;
    align-items: center;
}

.notification-time i {
    color: #718096 !important;
}

/* ===================================
   Notification Unread Badge
   =================================== */

.notification-badge {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ===================================
   Mark All Button Styling
   =================================== */

#markAllNotifications {
    font-size: 0.8125rem;
    color: #4a5568 !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

#markAllNotifications:hover {
    color: #2d3748 !important;
    text-decoration: none !important;
}

#markAllNotifications i {
    color: inherit !important;
}

/* ===================================
   Updated Time Display
   =================================== */

#notificationsUpdatedAt {
    font-size: 0.75rem;
}

/* ===================================
   Notification Animations
   =================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item.new {
    animation: slideIn 0.3s ease;
}
