/* =============================================================================
   NOTIFICATION STYLES
   Save as: app/static/css/notifications.css
   ============================================================================= */

.notification-dropdown {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
}

.notification-item:hover {
    background-color: #f9fafb;
    text-decoration: none;
    color: inherit;
}

.notification-item.unread {
    background-color: #eff6ff;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

.notification-item.unread .notification-title {
    padding-left: 1rem;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

.notification-message {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.notification-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    min-width: 18px;
    height: 18px;
}

#notificationsDropdown {
    position: relative;
}

#notificationsDropdown .fa-bell {
    font-size: 1.1rem;
}

.dropdown-header strong {
    font-size: 0.95rem;
}

.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Smooth badge animation */
#notification-badge {
    animation: notifFadeIn 0.3s ease-in;
}

@keyframes notifFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Notification types - color coding */
.notification-item[data-type="urgent"]::after,
.notification-item.notification-urgent::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: #ef4444;
    border-radius: 2px;
}

.notification-item[data-type="success"]::after,
.notification-item.notification-success::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: #10b981;
    border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0;
    }
}