/**
 * AbhiHub — notification-bell.css
 * Styles for the header notification bell + dropdown panel.
 * Extracted from p_struct.html inline <style> block (bottom of file).
 */

#notifBellWrap {
    position: relative;
    margin-left: auto;
}

#notifBell {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

#notifBell:hover { background: rgba(37, 99, 235, 0.1); }

#notifBadge {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-red);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
}

#notifPanel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 320px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 9000;
    overflow: hidden;
    animation: notifSlideIn 0.25s ease;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--bg-secondary);
}

.notif-panel-title {
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.notif-mark-read-btn {
    background: none;
    border: none;
    font-size: var(--text-xs);
    color: var(--primary-600);
    font-weight: 600;
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.notif-mark-read-btn:hover { background: var(--primary-50); }

#notifList {
    max-height: 340px;
    overflow-y: auto;
}

#notifList::-webkit-scrollbar       { width: 4px; }
#notifList::-webkit-scrollbar-track { background: var(--bg-secondary); }
#notifList::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 4px; }

.notif-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--bg-secondary);
    transition: background var(--transition-fast);
}

.notif-item.unread { background: #f0f7ff; }
.notif-item.unread:hover { background: #e8f3ff; }

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-item-icon.view    { background: var(--primary-100); }
.notif-item-icon.default { background: #dcfce7; }

.notif-item-content { flex: 1; min-width: 0; }

.notif-item-title {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-message {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}

.notif-item-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-500);
    flex-shrink: 0;
    margin-top: 4px;
}

.notif-panel-footer {
    padding: var(--space-2) var(--space-4);
    border-top: 1px solid var(--bg-secondary);
    text-align: center;
}

.notif-panel-footer span {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

@keyframes notifSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Loading state inside notif list */
.notif-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}
