
/* Standard Modern CSS */
:root {
    --primary: #2da2e0;
    --primary-glow: rgba(45, 162, 224, 0.4);
    --header-bg: #1a1a1a;
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --success: #10b981;
    --danger: #ef4444;
}

@font-face {
    font-family: 'Inter';
    src: local('sans-serif');
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--header-bg);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-size: 1.4rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -0.5px; }
.nav-desktop { display: none; gap: 2rem; }
.nav-link { color: #e5e7eb; text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }
.icon-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Dashboard */
.container { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; width: 100%; flex-grow: 1; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Stage */
.stage-card {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    transition: all 0.5s ease;
}

.stage-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s;
}
.stage-card.active .stage-overlay { opacity: 0; pointer-events: none; }

.btn-large {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 0 30px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-large:hover { transform: scale(1.05); box-shadow: 0 0 50px var(--primary-glow); }

canvas { width: 100%; height: 100%; position: absolute; inset: 0; }

.metrics-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: none; 
    flex-direction: column;
    gap: 0.5rem;
    width: 180px;
}
.metric-item { display: flex; justify-content: space-between; font-size: 0.9rem; }
.metric-val { font-weight: 700; font-family: monospace; color: var(--primary); }

.view-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    display: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}
.toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.toggle-btn.active { background: white; color: black; }

/* Controls */
.controls-panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
}
.controls-panel.active { opacity: 1; pointer-events: all; }

.btn-action {
    background: white;
    border: 2px solid #e5e7eb;
    color: #4b5563;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-action:hover { border-color: var(--primary); color: var(--primary); }
.btn-record.recording { 
    background: #fee2e2; border-color: var(--danger); color: var(--danger); 
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red { 50% { opacity: 0.7; } }

.audio-wrapper { display: none; align-items: center; gap: 10px; flex-grow: 1; justify-content: flex-end; }
audio { height: 40px; border-radius: 50px; }

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.info-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.info-icon { font-size: 2rem; color: var(--primary); opacity: 0.8; }
.info-content div:first-child { font-size: 0.8rem; color: #9ca3af; text-transform: uppercase; font-weight: 700; }
.info-content div:last-child { font-size: 1rem; font-weight: 600; color: var(--text-main); }

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .dashboard-grid { grid-template-columns: 3fr 1fr; }
    .sidebar { display: flex; flex-direction: column; gap: 1rem; }
}

@media (max-width: 767px) {
    .sidebar { display: none; }
    .stage-card { min-height: 300px; }
    .btn-large { padding: 1rem 2rem; font-size: 1rem; }
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}
.tip-item { display: flex; gap: 10px; margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.4; color: #555; }
.tip-icon { color: var(--primary); font-size: 1.2rem; }
