/* ============================================= */
/* SafetyTraining - Notification Center Styles   */
/* Messenger-style notification panel            */
/* ============================================= */

/* ==================== */
/* Panel Container      */
/* ==================== */
.notification-panel {
    width: 380px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* ==================== */
/* Panel Header         */
/* ==================== */
.notification-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

/* ==================== */
/* Panel Content        */
/* ==================== */
.notification-panel-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* ==================== */
/* Notification List    */
/* ==================== */
.notification-list {
    display: flex;
    flex-direction: column;
}

/* ==================== */
/* Notification Card    */
/* ==================== */
.notification-card {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.15s ease;
    cursor: default;
}

.notification-card:last-child {
    border-bottom: none;
}

.notification-card:hover {
    background: var(--gray-50);
}

.notification-card.unread {
    background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1.25rem - 3px);
}

.notification-card.unread:hover {
    background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
}

/* ==================== */
/* Card Icon            */
/* ==================== */
.notification-card-icon {
    flex-shrink: 0;
    padding-top: 0.125rem;
}

/* ==================== */
/* Card Content         */
/* ==================== */
.notification-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.notification-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.notification-card-time {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-card-body {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.notification-card-expires {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ==================== */
/* Card Actions         */
/* ==================== */
.notification-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

/* ==================== */
/* Empty & Loading      */
/* ==================== */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

/* ==================== */
/* Responsive           */
/* ==================== */
@media (max-width: 600px) {
    .notification-panel {
        width: 100vw;
        max-width: 100vw;
        max-height: 80vh;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
}
