/* ============================================
   NOTIFICATIONS CSS
   Notification bell dropdown and related components
   Extracted from base.html - Session 6 (Jan 2026)
   ============================================ */

/* ============================================
   NOTIFICATION BELL
   ============================================ */

.notification-bell {
    position: relative;
}

.notification-bell-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.notification-bell-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: white;
    background: var(--danger);
    border-radius: 9px;
    border: 2px solid var(--bg-primary);
}

/* Fill bell with yellow when there are notifications */
.notification-bell.has-notifications .notification-bell-btn svg {
    fill: var(--warning);
    stroke: var(--warning);
}

.notification-bell.has-notifications .notification-bell-btn:hover svg {
    fill: var(--warning-600);
    stroke: var(--warning-600);
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */

.notification-dropdown {
    width: 360px;
    max-height: 480px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.notification-header h6 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   NOTIFICATION SECTIONS
   ============================================ */

.notification-section {
    max-height: 320px;
    overflow-y: auto;
}

.notification-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   NOTIFICATION ITEMS
   ============================================ */

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   NOTIFICATION FOOTER
   ============================================ */

.notification-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.notification-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.notification-view-all:hover {
    color: var(--primary-dark);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.notification-empty p {
    margin: 0.75rem 0 0.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.notification-empty span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}
