/* LeadProwl v2 design system — extracted from /var/www/LeadProwl/LeadProwl.html
 * Single source of truth for the dark-glass aesthetic. Tailwind via CDN
 * handles utility classes; this file holds custom variables, keyframes,
 * and the few visual primitives Tailwind doesn't reach.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

:root {
    --brand-blue: #3b82f6;
    --brand-blue-glow: rgba(59, 130, 246, 0.4);
    --brand-dark: #0a0c10;
    --brand-darker: #050505;
    --glass-bg: rgba(10, 12, 16, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-dark);
    background-image:
        radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15), transparent 80%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2072');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #e5e7eb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── glass-morphism primitives ──────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hero-gradient {
    background: linear-gradient(135deg, #fff 30%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.brand-glow {
    box-shadow: 0 0 20px var(--brand-blue-glow);
}

/* ── animations ────────────────────────────────────────────────────── */
.pulse-live { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: 0.5; }
}

.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── grid overlay (subtle bg texture) ──────────────────────────────── */
.grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* ── scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 8px; }
::-webkit-scrollbar-track    { background: var(--brand-dark); }
::-webkit-scrollbar-thumb    { background: #222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ── form primitives reused across pages ──────────────────────────── */
.input-glass {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: #fff;
    transition: all 0.2s;
}
.input-glass:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.input-glass::placeholder { color: #4b5563; }

.btn-primary {
    background: #fff;
    color: #000;
    font-weight: 900;
    transition: all 0.2s;
}
.btn-primary:hover { background: #dbeafe; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-blue {
    background: var(--brand-blue);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 20px var(--brand-blue-glow);
    transition: all 0.2s;
}
.btn-blue:hover { background: #60a5fa; transform: translateY(-1px); }
.btn-blue:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }

/* ── tags / chips ──────────────────────────────────────────────────── */
.chip-green { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.chip-blue  { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.chip-amber { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.chip-red   { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.chip-grey  { background: rgba(255, 255, 255, 0.05); color: #9ca3af; border: 1px solid rgba(255, 255, 255, 0.1); }

/* ── alert panels ──────────────────────────────────────────────────── */
.alert-info    { background: rgba(59, 130, 246, 0.08); border-left: 3px solid var(--brand-blue); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.alert-success { background: rgba(34, 197, 94, 0.08); border-left: 3px solid #22c55e; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.alert-warn    { background: rgba(245, 158, 11, 0.08); border-left: 3px solid #f59e0b; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.alert-error   { background: rgba(239, 68, 68, 0.08); border-left: 3px solid #ef4444; padding: 12px 16px; border-radius: 0 8px 8px 0; }

/* ── HTMX loading indicator ────────────────────────────────────────── */
.htmx-indicator    { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-request.htmx-indicator  { display: inline-flex; }

/* ── sidebar (dashboard) ───────────────────────────────────────────── */
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #9ca3af;
    transition: all 0.15s;
    font-weight: 600;
    font-size: 14px;
}
.sidebar-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sidebar-link.active { background: rgba(59, 130, 246, 0.1); color: var(--brand-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
