:root{
    --bg: #0f172a;
    --panel: #111827;
    --panel-2: #1f2937;
    --line: rgba(255,255,255,.08);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #2563eb;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --sidebar: #0b1220;
    --radius: 18px;
}

*{box-sizing:border-box}
body{
    margin:0;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(180deg, #0b1120 0%, #111827 100%);
    color: var(--text);
}

a{
    color: inherit;
    text-decoration: none;
}

.app-shell{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background: rgba(11,18,32,.92);
    border-right:1px solid var(--line);
    padding:24px;
}

.sidebar-brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:28px;
}

.brand-mark{
    width:46px;
    height:46px;
    border-radius:14px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:20px;
    color:white;
}

.sidebar-brand h1{
    margin:0;
    font-size:18px;
}

.sidebar-brand p{
    margin:4px 0 0;
    color:var(--muted);
    font-size:12px;
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sidebar-nav a{
    padding:12px 14px;
    border-radius:12px;
    color:#cbd5e1;
}

.sidebar-nav a:hover{
    background: rgba(255,255,255,.05);
}

.app-main{
    flex:1;
    display:flex;
    flex-direction:column;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 28px;
    border-bottom:1px solid var(--line);
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(10px);
}

.topbar h2{
    margin:0;
    font-size:22px;
}

.app-content{
    padding:28px;
}

.stats-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap:18px;
    margin-bottom:24px;
}

.stat-card,
.panel,
.live-header-card{
    background: rgba(17,24,39,.8);
    border:1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.stat-card{
    padding:20px;
}

.stat-card span{
    display:block;
    color:var(--muted);
    margin-bottom:8px;
}

.stat-card strong{
    font-size:30px;
}

.page-actions{
    margin-bottom:20px;
}

.btn{
    border:none;
    padding:12px 18px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.btn-primary{
    background: var(--primary);
    color:white;
}

.btn-secondary{
    background:#334155;
    color:white;
}

.btn-danger{
    background: var(--danger);
    color:white;
}

.panel{
    padding:20px;
}

.panel-header{
    margin-bottom:18px;
}

.panel-header h3{
    margin:0 0 6px;
}

.panel-header p{
    margin:0;
    color:var(--muted);
}

.meeting-table{
    width:100%;
    border-collapse: collapse;
}

.meeting-table th,
.meeting-table td{
    padding:14px 12px;
    border-bottom:1px solid var(--line);
    text-align:left;
}

.badge{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    text-transform:capitalize;
}

.badge-recording{ background: rgba(220,38,38,.15); color: #fca5a5; }
.badge-processing{ background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-completed{ background: rgba(22,163,74,.15); color: #86efac; }
.badge-failed{ background: rgba(127,29,29,.28); color: #fecaca; }

.form-grid{
    display:grid;
    gap:18px;
}

.form-group{
    display:grid;
    gap:8px;
}

.form-group label{
    font-weight:600;
}

.form-group input,
.form-group textarea{
    width:100%;
    background:#0f172a;
    border:1px solid var(--line);
    color:var(--text);
    border-radius:12px;
    padding:12px 14px;
}

.form-actions{
    display:flex;
    gap:12px;
    margin-top:8px;
}

.live-header-card{
    padding:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px;
}

.eyebrow{
    color:#60a5fa;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:12px;
    margin:0 0 6px;
}

.muted{
    color:var(--muted);
}

.live-grid{
    display:grid;
    grid-template-columns: 1.25fr .75fr;
    gap:20px;
}

.wave-placeholder{
    height:140px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:18px 0 20px;
    border-radius:14px;
    background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(6,182,212,.05));
    border:1px dashed rgba(96,165,250,.25);
}

.wave-line{
    width:10px;
    height:60px;
    border-radius:999px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    animation: pulse 1.2s infinite ease-in-out;
}

.wave-line:nth-child(2){ height:90px; animation-delay:.2s; }
.wave-line:nth-child(3){ height:70px; animation-delay:.4s; }

@keyframes pulse{
    0%,100%{ transform:scaleY(.7); opacity:.7; }
    50%{ transform:scaleY(1.1); opacity:1; }
}

.live-actions{
    display:flex;
    gap:12px;
    margin-bottom:18px;
}

.live-meta{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.live-meta div{
    padding:14px;
    border-radius:12px;
    background: rgba(255,255,255,.03);
    border:1px solid var(--line);
}

.live-meta span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.live-log{
    display:grid;
    gap:10px;
    max-height:360px;
    overflow:auto;
}

.log-item{
    padding:12px 14px;
    border-radius:12px;
    background: rgba(255,255,255,.03);
    border:1px solid var(--line);
}

.login-body{
    margin:0;
    min-height:100vh;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(135deg, #0b1120 0%, #111827 100%);
    color:#e5e7eb;
}

.login-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns: 1.1fr .9fr;
}

.login-brand-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:48px;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(6,182,212,.16), transparent 30%);
}

.brand-box{
    max-width:460px;
}

.brand-box .brand-mark{
    width:64px;
    height:64px;
    border-radius:18px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    font-weight:700;
    color:#fff;
    margin-bottom:20px;
}

.brand-box h1{
    margin:0 0 10px;
    font-size:40px;
}

.brand-box p{
    margin:0;
    color:#94a3b8;
    font-size:18px;
    line-height:1.7;
}

.login-form-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:48px;
}

.login-card{
    width:100%;
    max-width:420px;
    background: rgba(17,24,39,.82);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:32px;
    box-shadow: 0 20px 50px rgba(0,0,0,.24);
}

.login-card h2{
    margin:0 0 8px;
    font-size:28px;
}

.btn-block{
    width:100%;
    justify-content:center;
}

.alert-error{
    padding:12px 14px;
    border-radius:12px;
    background: rgba(220,38,38,.12);
    border:1px solid rgba(220,38,38,.25);
    color:#fecaca;
    font-size:14px;
}