/**
 * 🔔 ELITE SMART NOTIFICATIONS — Settings panel + permission prompt.
 * Lightweight CSS — appears inline in the main app.
 */

/* Permission prompt (banner-style, slides in from bottom) */
.elite-notif-prompt {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(160px);
    z-index: 10050;
    max-width: 480px;
    width: calc(100% - 32px);
    background: linear-gradient(135deg, rgba(15,20,40,0.96), rgba(20,15,40,0.96));
    border: 1px solid rgba(34,211,238,0.3);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 50px rgba(34,211,238,0.15);
    display: flex; gap: 14px; align-items: flex-start;
    opacity: 0;
    transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.elite-notif-prompt.visible {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
.elite-notif-prompt-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(139,92,246,.18));
    display: flex; align-items: center; justify-content: center;
    color: #22d3ee;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.elite-notif-prompt-text { flex: 1; min-width: 0; }
.elite-notif-prompt-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .8125rem; font-weight: 700;
    letter-spacing: .6px;
    color: #f5f5f7;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.elite-notif-prompt-body {
    font-size: .8125rem;
    color: rgba(245,245,247,.65);
    line-height: 1.5;
}
.elite-notif-prompt-actions {
    display: flex; gap: 8px; margin-top: 12px;
    flex-wrap: wrap;
}
.elite-notif-prompt-btn {
    padding: 7px 14px;
    border-radius: 9px;
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .25s ease;
}
.elite-notif-prompt-btn.primary {
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34,211,238,.35);
}
.elite-notif-prompt-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(34,211,238,.5);
}
.elite-notif-prompt-btn.ghost {
    background: rgba(255,255,255,.06);
    color: rgba(245,245,247,.7);
}
.elite-notif-prompt-btn.ghost:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* In-app fallback toast (when permission denied or page open) */
.elite-notif-toast {
    position: fixed;
    top: 24px; right: 24px;
    z-index: 10080;
    max-width: 360px;
    background: linear-gradient(135deg, rgba(15,20,40,0.96), rgba(20,15,40,0.96));
    border: 1px solid rgba(34,211,238,0.25);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 14px;
    padding: 14px 16px;
    color: #f5f5f7;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    display: flex; gap: 12px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .3s, transform .3s cubic-bezier(.34,1.56,.64,1);
    pointer-events: auto;
    cursor: pointer;
}
.elite-notif-toast.visible { opacity: 1; transform: translateX(0); }
.elite-notif-toast.hiding { opacity: 0; transform: translateX(20px); }
.elite-notif-toast-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(139,92,246,.18));
    display: flex; align-items: center; justify-content: center;
    color: #22d3ee;
    font-size: 1rem;
    flex-shrink: 0;
}
.elite-notif-toast-icon.success { color: #4ade80; background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(16,185,129,.18)); }
.elite-notif-toast-icon.warn    { color: #fbbf24; background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(217,119,6,.18)); }
.elite-notif-toast-icon.alert   { color: #f87171; background: linear-gradient(135deg, rgba(239,68,68,.18), rgba(220,38,38,.18)); }
.elite-notif-toast-body { min-width: 0; flex: 1; }
.elite-notif-toast-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: #f5f5f7;
    margin-bottom: 3px;
    text-transform: uppercase;
}
.elite-notif-toast-text {
    font-size: .8125rem;
    color: rgba(245,245,247,.7);
    line-height: 1.45;
}

/* Light theme */
.elite-notif-prompt.light-theme,
.elite-notif-toast.light-theme {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,247,255,.96));
    border-color: rgba(34,211,238,.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.elite-notif-prompt.light-theme .elite-notif-prompt-title,
.elite-notif-toast.light-theme .elite-notif-toast-title { color: #1d1d1f; }
.elite-notif-prompt.light-theme .elite-notif-prompt-body,
.elite-notif-toast.light-theme .elite-notif-toast-text { color: rgba(29,29,31,.7); }
.elite-notif-prompt.light-theme .elite-notif-prompt-btn.ghost {
    background: rgba(0,0,0,.05); color: rgba(29,29,31,.7);
}
