/*
 * NOTIFICATIONS.CSS
 * Global notification system styles
 * SubProject: SP-PUX-29-notifications
 * Last Updated: December 4, 2025
 */

/* ===========================
   NOTIFICATION BELL
   =========================== */

#notification-bell {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

#notification-bell:hover {
    transform: scale(1.05);
}

/* Badge positioning and styling */
#notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--bs-danger);
    color: white;
    font-weight: 600;
}

/* Pulse animation when new notification arrives */
@keyframes notification-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.15); 
    }
}

.notification-pulse {
    animation: notification-pulse 1s ease-in-out 2;
}

/* Pulse dot indicator */
#notification-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--bs-danger);
    border-radius: 50%;
    animation: pulse-blink 1.5s infinite;
}

@keyframes pulse-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===========================
   NOTIFICATION DROPDOWN
   =========================== */

#notification-dropdown {
    max-height: 600px;
    overflow: hidden;
}

/* Dropdown header with background image */
.notification-dropdown-header {
    background-image: url('/assets/media/misc/menu-header-bg.jpg');
    background-position: center;
    background-size: cover;
}

#notification-dropdown .scroll-y {
    max-height: 400px;
    overflow-y: auto;
}

/* Notification item in dropdown */
.notification-item {
    border-bottom: 1px solid var(--bs-gray-200);
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: var(--bs-gray-100) !important;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Unread notification highlight */
.notification-item.bg-light-warning {
    background-color: rgba(255, 199, 0, 0.1) !important;
    border-left: 3px solid var(--bs-warning);
}

/* Notification icon styling */
.notification-item .symbol-label {
    transition: transform 0.2s ease;
}

.notification-item:hover .symbol-label {
    transform: scale(1.1);
}

/* Mark as read button */
.mark-read-btn {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.mark-read-btn:hover {
    opacity: 1;
}

/* ===========================
   NOTIFICATION CENTER
   =========================== */

.notification-item-full {
    padding: 1.5rem 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.notification-item-full:hover {
    background-color: var(--bs-gray-100);
    border-left-color: var(--bs-primary);
}

.notification-item-full.bg-light-warning {
    background-color: rgba(255, 199, 0, 0.05);
    border-left-color: var(--bs-warning);
}

/* Notification title */
.notification-item-full a.fs-5 {
    text-decoration: none;
    color: var(--bs-gray-900);
    font-weight: 600;
}

.notification-item-full a.fs-5:hover {
    color: var(--bs-primary);
}

/* Archive button */
.archive-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item-full:hover .archive-btn {
    opacity: 1;
}

/* ===========================
   NOTIFICATION SETTINGS
   =========================== */

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Category table */
.table-responsive .form-check-input {
    cursor: pointer;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Mobile adjustments */
@media (max-width: 767px) {
    #notification-dropdown {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0;
    }
    
    .notification-item-full {
        padding: 1rem 0.5rem;
    }
    
    .notification-item-full .symbol {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    #notification-dropdown {
        width: 320px !important;
    }
}

/* ===========================
   DARK MODE SUPPORT
   =========================== */

[data-bs-theme="dark"] {
    .notification-item:hover {
        background-color: var(--bs-gray-800) !important;
    }
    
    .notification-item-full:hover {
        background-color: var(--bs-gray-800);
    }
    
    .notification-item.bg-light-warning,
    .notification-item-full.bg-light-warning {
        background-color: rgba(255, 199, 0, 0.15) !important;
    }
    
    .notification-item-full a.fs-5 {
        color: var(--bs-gray-100);
    }
}

/* ===========================
   LOADING STATES
   =========================== */

.notification-skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

/* Focus states */
#notification-bell:focus,
.mark-read-btn:focus,
.archive-btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .notification-item.bg-light-warning {
        border-left-width: 4px;
    }
    
    #notification-badge {
        border: 2px solid white;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .notification-pulse,
    #notification-pulse,
    .notification-item .symbol-label {
        animation: none !important;
        transition: none !important;
    }
}


























