/*
 * OMEGA ELITE CRM - INDUSTRIAL DESIGN SYSTEM (v2.0)
 * Deep OLED Black, Cyber Azure, and Toxic Lime
 */

:root {
    --bg-oled: #020617;
    --bg-card: rgba(15, 23, 42, 0.4);
    --bg-card-hover: rgba(30, 41, 59, 0.6);
    --azure: #3B82F6;
    --lime: #84CC16;
    --gold: #F59E0B;
    --red: #EF4444;
    --text-primary: #F8FAFC;
    --text-muted: #64748B;
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(59, 130, 246, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-oled);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── LAYOUT ── */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-glass);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--lime);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-dot {
    width: 12px;
    height: 12px;
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--lime);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
}

.nav-link:hover, .nav-link.active {
    background: var(--bg-card-hover);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-link.active {
    border-left: 3px solid var(--azure);
}

/* ── MAIN CONSOLE ── */
.main-viewport {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s;
}

.metric-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.metric-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.metric-value {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -2px;
}

.metric-value.azure { color: var(--azure); }
.metric-value.lime { color: var(--lime); }

/* ── CRM GRID ── */
.crm-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    flex: 1;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.lead-name {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.lead-phone {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: var(--azure);
    opacity: 0.8;
}

.data-mesh {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mesh-item label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.mesh-item span {
    font-size: 16px;
    font-weight: 600;
}

/* ── VOICE ENGINE ── */
.voice-engine {
    background: #000;
    border-radius: 24px;
    height: 120px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.voice-engine::before {
    content: 'O M E G A   V O I C E   M E S H';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 8px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 4px;
}

.wave-bar {
    width: 4px;
    background: var(--azure);
    border-radius: 10px;
    height: 10px;
    transition: all 0.1s ease;
}

/* ── TRANSCRIPT ── */
.transcript-box {
    flex: 1;
    margin-top: 40px;
    overflow-y: auto;
    padding-right: 10px;
}

.t-line {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.t-author {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 6px;
    color: var(--azure);
}

.t-text {
    font-size: 15px;
    line-height: 1.6;
    color: #CBD5E1;
}

.t-line.customer .t-author { color: var(--lime); }

/* ── AI CO PILOT ── */
.ai-pilot {
    background: rgba(132, 204, 22, 0.03);
    border: 1px solid rgba(132, 204, 22, 0.1);
    border-radius: 24px;
    padding: 32px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-dot {
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.ai-text {
    font-size: 14px;
    line-height: 1.7;
    color: #94A3B8;
    font-style: italic;
}

/* ── BUTTONS ── */
.btn-ignite {
    background: linear-gradient(135deg, var(--azure) 0%, #1D4ED8 100%);
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    color: white;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.btn-ignite:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
}
