/* /the-perfection-paradox/notification-center.css */
/* 1. Bell Icon Container */
.notification-bell-container {
    position: relative;
    display: none; /* Hidden by default, shown for logged-in users */
}

.auth-logged-in .notification-bell-container {
    display: block; /* Show when user is logged in */
}

#notification-bell-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    position: relative;
}

#notification-bell-button:hover,
#notification-bell-button[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#notification-bell-button svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* 2. Unread Badge */
.unread-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #f56c6c;
    border-radius: 50%;
    border: 1px solid #0f111a;
    display: none; /* Hidden by default */
}

.unread-badge.is-visible {
    display: block;
}

/* 3. Notification Panel */
.notification-panel {
    position: fixed;
    top: 80px; /* Adjust to match your header height */
    right: 35px;
    width: 380px;
    max-width: 90vw;
    background: rgba(21, 24, 38, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9995;
    display: flex;
    flex-direction: column;
    max-height: 450px;

    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.notification-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 4. Panel Header & Footer */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    flex-shrink: 0;
}

.panel-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}


/* 5. Panel Body & List */
.panel-body {
    overflow-y: auto;
    flex-grow: 1;
}
.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-item {
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.notification-item.is-read .notification-content p {
    color: #a9b3c1;
}

/* Unread Indicator */
.notification-item::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #4a90e2;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    opacity: 1;
    transition: opacity 0.3s;
}

.notification-item.is-read::before {
    opacity: 0;
}


.notification-content {
    flex-grow: 1;
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f1f1f1;
}

.notification-content .timestamp {
    font-size: 0.75rem;
    color: #a9b3c1;
    margin-top: 4px;
}

/* 6. Empty State */
.empty-state {
    display: none; /* Hidden by default */
    padding: 40px 20px;
    text-align: center;
    color: #a9b3c1;
}

.notification-list:empty + .empty-state {
    display: block; /* Show only when the list is empty */
}

