/*
 * ADONIS CRM — Locked Module Overlay + Notification Bell Styles (TZ3)
 * No inline styles — all presentation lives here.
 */

/* ═══════════════════════════════════════════════════════
   LOCKED MODULE OVERLAY (Adosha-guardian)
   ═══════════════════════════════════════════════════════ */

.locked-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease;
}

.locked-overlay.hidden {
    display: none;
}

.locked-card {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.locked-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
}

.locked-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.locked-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
    margin: 0 0 12px;
}

.locked-message {
    font-size: 15px;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin: 0 0 28px;
}

.locked-close-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.locked-close-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.locked-close-btn:active {
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════
   NOTIFICATION BELL
   ═══════════════════════════════════════════════════════ */

.notif-bell-wrapper {
    position: relative;
}

/* Shared style for SVG icon nav buttons */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
    transition: color 0.18s, background 0.18s;
    padding: 0;
    text-decoration: none;
}

.nav-icon-btn:hover {
    color: var(--text, #e4e6ea);
    background: rgba(255, 255, 255, 0.07);
}

.nav-svg-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.notif-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    line-height: 1;
    position: relative;
    transition: background 0.18s, color 0.18s;
}

.notif-bell-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    padding: 0 4px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--bg-primary, #13151a);
}

.notif-bell-badge.hidden {
    display: none;
}

/* DM unread badge */
#nav-messages-link { position: relative; }
.nav-dm-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    padding: 0 4px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--bg-primary, #13151a);
}
.nav-dm-badge.hidden { display: none; }

/* Dropdown panel */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: var(--bg-card, #1e1e2e);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    z-index: 1200;
    overflow: hidden;
    animation: fadeIn 0.15s ease;
}

.notif-dropdown.hidden {
    display: none;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

.notif-read-all-btn {
    background: none;
    border: none;
    color: var(--accent, #6366f1);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.notif-read-all-btn:hover {
    background: rgba(99, 102, 241, 0.12);
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0;
}

.notif-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-secondary, #64748b);
    font-size: 13px;
}

/* Individual notification item */
.notif-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.notif-item:hover {
    background: var(--hover-bg, rgba(255, 255, 255, 0.04));
}

.notif-item.unread {
    border-left-color: var(--accent, #6366f1);
    background: rgba(99, 102, 241, 0.05);
}

.notif-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-msg {
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    margin-top: 2px;
}

/* Level colour accents */
.notif-item.level-success { border-left-color: #22c55e; }
.notif-item.level-warning  { border-left-color: #f59e0b; }
.notif-item.level-error    { border-left-color: #ef4444; }
.notif-item.level-info     { border-left-color: #6366f1; }


/* ═══════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
