/* Notifications in Header */
.header-notifications-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-notifications-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    transition: color 150ms ease;
}

.header-notifications-trigger:hover {
    color: #3b82f6;
}

.header-notifications-trigger.has-alert {
    color: #ef4444;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #fff;
}

.header-notifications-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 320px;
    max-width: 400px;
    max-height: 400px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
    overflow-y: auto;
}

.header-notifications-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-empty {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.notification-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    flex-shrink: 0;
}

.notification-dot--ok {
    background-color: #d1fae5;
    color: #065f46;
}

.notifications-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 150ms ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item--red .notification-dot {
    background-color: #fee2e2;
    color: #991b1b;
}

.notification-item--emerald .notification-dot {
    background-color: #d1fae5;
    color: #065f46;
}

.notification-item--yellow .notification-dot {
    background-color: #fef3c7;
    color: #92400e;
}

.notification-item--orange .notification-dot {
    background-color: #fed7aa;
    color: #9a3412;
}

.notification-item--blue .notification-dot {
    background-color: #dbeafe;
    color: #1e40af;
}

.notification-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.notification-copy strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    word-break: break-word;
}

.notification-copy small {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    word-break: break-word;
}

.notification-item b {
    font-weight: 600;
    font-size: 0.875rem;
    background-color: #eff6ff;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .header-notifications-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 0;
        max-width: 100%;
        max-height: 70vh;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
    }
    
    .header-notifications-menu.active {
        transform: translateY(0);
    }
}
