/* ─── Admin Dashboard Button ─────────────────────────── */
.admin-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(123, 47, 247, 0.15);
    color: var(--primary-color, #7b2ff7);
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.admin-dashboard-btn:hover {
    background: var(--primary-color, #7b2ff7);
    color: #fff;
}

/* ─── Notification Bell ──────────────────────────────── */
.notification-area {
    position: relative;
    margin-right: 0.75rem;
}

.notification-bell {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    position: relative;
    transition: color 0.2s;
}

.notification-bell:hover,
.notification-bell:focus-visible,
.notification-bell[aria-expanded="true"] {
    color: var(--primary-color, #7b2ff7);
}

.notification-bell:focus-visible {
    outline: 2px solid var(--primary-color, #7b2ff7);
    outline-offset: 2px;
    border-radius: 4px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--danger-color, #dc3545);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.notification-dropdown-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notification-mark-all {
    background: none;
    border: none;
    color: var(--primary-color, #7b2ff7);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.notification-mark-all:hover,
.notification-mark-all:focus-visible {
    background: rgba(123, 47, 247, 0.1);
    outline: none;
}

.notification-mark-all:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color, #7b2ff7);
}

.notification-list {
    overflow-y: auto;
    max-height: 340px;
    padding: 0.25rem 0;
}

.notification-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem 1rem 0.6rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.notification-item:hover,
.notification-item:focus-visible {
    background: rgba(123, 47, 247, 0.05);
    outline: none;
}

.notification-item:focus-visible {
    box-shadow: inset 0 0 0 2px var(--primary-color, #7b2ff7);
}

.notification-item.unread {
    background: rgba(123, 47, 247, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #7b2ff7);
}

.notification-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.notification-icon.approved {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success-color, #28a745);
}

.notification-icon.rejected {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger-color, #dc3545);
}

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

.notification-body-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-reason {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.15rem;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.notification-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
    }

    .admin-dashboard-btn {
        width: 36px;
        height: 36px;
    }

    .notification-bell {
        min-width: 36px;
        min-height: 36px;
    }
}
