/* ===================================
   NOTIFICATION SYSTEM
   =================================== */

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-bell:hover {
    background: var(--gray-100);
}

.bell-icon {
    font-size: 1.5rem;
    display: block;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Notification Panel */
.notification-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.mark-all-read:hover {
    background: var(--primary-light);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.no-notifications {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Notification Item */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-item.unread:hover {
    background: var(--primary-light);
    opacity: 0.9;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.unread-dot {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 480px) {
    .notification-panel {
        width: calc(100vw - 40px);
        right: 20px;
    }
}

/* Dark mode support */
[data-theme="dark"] .notification-panel {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}