/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION SYSTEM STYLES
   Complete styling for notification UI
   ═══════════════════════════════════════════════════════════════ */

/* NOTIFICATION BELL BUTTON */
.notif-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.notif-btn:hover {
    background: rgba(110, 147, 176, 0.1);
    color: #6E93B0;
    transform: scale(1.05);
}

.notif-btn:active {
    transform: scale(0.95);
}

/* NOTIFICATION BADGE */
#notifBadge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    line-height: 1;
    padding: 0;
    min-width: 24px;
}

#notifBadge.show {
    display: flex !important;
    animation: badgePulse 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgePulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* NOTIFICATION MODAL BACKDROP */
#notificationModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

#notificationModal.active {
    display: block;
    opacity: 1;
}

/* NOTIFICATION SIDEBAR */
#notificationSidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 420px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 999 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(420px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#notificationSidebar.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* NOTIFICATION HEADER */
.notification-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
}

.notification-sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-sidebar-header button {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #6B7280;
    padding: 4px;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.notification-sidebar-header button:hover {
    background: rgba(110, 147, 176, 0.1);
    color: #6E93B0;
}

/* NOTIFICATION PANEL */
#notificationPanel {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

#notificationPanel::-webkit-scrollbar {
    width: 6px;
}

#notificationPanel::-webkit-scrollbar-track {
    background: transparent;
}

#notificationPanel::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
    transition: background 0.2s ease;
}

#notificationPanel::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* NOTIFICATION ITEM */
.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    border-left: 3px solid transparent;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
    box-shadow: inset 0 0 0 1px rgba(100, 135, 163, 0.1);
}

.notification-item.unread-notification {
    background: #f0f9ff;
    border-left-color: #3b82f6;
}

/* NOTIFICATION FOOTER */
.notification-sidebar-footer {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 6px;
    background: #f9fafb;
    flex-shrink: 0;
}

.notification-sidebar-footer button {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #6B7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.notification-sidebar-footer button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #4B5563;
}

.notification-sidebar-footer button:active {
    transform: scale(0.98);
}

.notification-sidebar-footer button.primary {
    background: #6E93B0;
    color: #ffffff;
    border-color: #6E93B0;
}

.notification-sidebar-footer button.primary:hover {
    background: #5a7a93;
    border-color: #5a7a93;
}

/* EMPTY STATE */
.notification-empty {
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #9CA3AF;
}

.notification-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.notification-empty p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #6B7280;
}

.notification-empty small {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ANIMATIONS */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    #notificationSidebar {
        width: 100% !important;
        transform: translateX(100%);
    }
    
    #notificationSidebar.active {
        transform: translateX(0);
    }
    
    .notification-sidebar-header {
        padding: 16px;
    }
    
    .notification-sidebar-header h3 {
        font-size: 1rem;
    }
    
    .notification-item {
        padding: 14px 16px;
    }
    
    .notification-sidebar-footer {
        padding: 10px;
    }
    
    .notification-sidebar-footer button {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    #notificationSidebar {
        width: 100% !important;
    }
    
    .notification-empty {
        min-height: 200px;
    }
    
    .notification-empty-icon {
        font-size: 3rem;
    }
}

/* LIGHT THEME ADJUSTMENTS */
@media (prefers-color-scheme: light) {
    #notificationSidebar {
        background: #ffffff !important;
    }
    
    .notification-item {
        background: #ffffff;
    }
    
    .notification-item:hover {
        background: #f8f9fa;
    }
}

/* DARK THEME SUPPORT (OPTIONAL) */
@media (prefers-color-scheme: dark) {
    #notificationSidebar {
        background: #1f2937 !important;
        color: #f3f4f6;
    }
    
    .notification-sidebar-header {
        background: #111827;
        border-bottom-color: #374151;
    }
    
    .notification-sidebar-header h3 {
        color: #f9fafb;
    }
    
    .notification-item {
        background: #1f2937;
        border-bottom-color: #374151;
    }
    
    .notification-item:hover {
        background: #2d3748;
    }
    
    .notification-item.unread-notification {
        background: #1e3a5f;
    }
}

/* PRINT STYLES */
@media print {
    #notificationSidebar,
    #notificationModal,
    .notif-btn {
        display: none !important;
    }
}
