/* ===== GemLive Interview — Premium Dark Theme ===== */
:root {
  --bg-primary: #070714;
  --bg-secondary: #0d0d24;
  --bg-card: rgba(15, 15, 40, 0.7);
  --bg-glass: rgba(20, 20, 55, 0.5);
  --bg-input: rgba(25, 25, 60, 0.6);
  --border-subtle: rgba(100, 100, 200, 0.12);
  --border-active: rgba(124, 58, 237, 0.5);
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
  --header-height: 60px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary); color: var(--text-primary);
  height: 100vh; overflow: hidden; -webkit-font-smoothing: antialiased;
}

/* ===== Animated Background ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(100,100,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,100,200,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position: 60px 60px; } }
.bg-glow {
  position: fixed; border-radius: 50%; filter: blur(120px); opacity: 0.35; z-index: 0;
  animation: float 12s ease-in-out infinite;
}
.bg-glow-1 { width: 500px; height: 500px; background: var(--accent); top: -200px; right: -100px; }
.bg-glow-2 { width: 400px; height: 400px; background: var(--cyan); bottom: -150px; left: -100px; animation-delay: -4s; }
.bg-glow-3 { width: 300px; height: 300px; background: var(--green); top: 40%; left: 40%; animation-delay: -8s; opacity: 0.15; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ===== App Layout ===== */
#app { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100vh; }

/* ===== Header ===== */
.header {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); padding: 0 20px;
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle); z-index: 10;
}
.header-left { display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-glow);
  animation: logoPulse 3s ease-in-out infinite;
}
.logo-icon-large { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; margin: 0 auto 16px; }
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 35px var(--accent-glow), 0 0 60px var(--cyan-glow); }
}
.logo-text h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.logo-text .accent { color: var(--accent-light); }
.tagline { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.header-center { display: flex; align-items: center; }
.status-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px; font-weight: 500; color: var(--green);
}
.status-bar.interviewing { background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.3); color: var(--accent-light); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status-dot.pulse { animation: statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.header-right { display: flex; align-items: center; gap: 8px; }
.btn-icon {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-subtle);
  background: var(--bg-glass); color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.btn-icon:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--accent); transform: translateY(-1px); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; cursor: pointer;
}

/* ===== Main Layout ===== */
.main-layout { display: flex; flex: 1; overflow: hidden; }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; padding: 16px;
  overflow-y: auto;
}
.sidebar-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 12px; padding: 0 4px;
}
.sidebar-section { margin-bottom: 20px; }
.sidebar-footer { margin-top: auto; }
.agent-list { display: flex; flex-direction: column; gap: 4px; }

/* Agent Card */
.agent-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.agent-card:hover { background: var(--bg-card); border-color: var(--border-subtle); }
.agent-card.active {
  background: var(--bg-card); border-color: var(--border-active);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(124,58,237,0.05);
}
.agent-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-desc { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progress Panel */
.progress-panel {
  padding: 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.progress-bar-container {
  height: 6px; border-radius: 3px; background: var(--bg-input);
  overflow: hidden; margin-bottom: 12px;
}
.progress-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.5s ease;
}
.progress-stats { display: flex; justify-content: space-between; }
.stat { text-align: center; }
.stat-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { display: block; font-size: 16px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }

.powered-by {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-size: 11px; color: var(--text-muted); padding: 12px;
  border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.gemini-badge { color: var(--accent-light); font-size: 14px; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Chat Area ===== */
.chat-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.agent-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass); backdrop-filter: blur(10px);
}
.agent-bar-info { display: flex; align-items: center; gap: 12px; }
.agent-bar-icon { font-size: 28px; }
.agent-bar-details h2 { font-size: 16px; font-weight: 700; }
.agent-bar-details span { font-size: 12px; color: var(--text-secondary); }
.agent-capabilities { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-badge {
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-secondary);
}

/* Messages */
.messages-container { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.messages { padding: 24px; max-width: 800px; margin: 0 auto; width: 100%; }

/* Welcome Screen */
.welcome-screen { text-align: center; padding: 40px 20px; animation: fadeUp 0.6s ease-out; }
.welcome-icon { font-size: 56px; margin-bottom: 16px; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.welcome-screen h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.welcome-screen > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.section-title {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}

/* Role Grid */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; margin: 0 auto 24px; }
.role-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  color: var(--text-primary); cursor: pointer; transition: var(--transition);
}
.role-card:hover {
  border-color: var(--accent); background: rgba(124,58,237,0.08);
  transform: translateY(-3px); box-shadow: var(--shadow-glow);
}
.role-icon { font-size: 28px; }
.role-name { font-size: 13px; font-weight: 600; }
.role-company { font-size: 11px; color: var(--text-muted); }

.welcome-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px auto;
  max-width: 400px; color: var(--text-muted); font-size: 12px;
}
.welcome-divider::before, .welcome-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 0 auto; }
.quick-action {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition); text-align: left;
}
.quick-action:hover { border-color: var(--accent); background: rgba(124,58,237,0.08); transform: translateY(-2px); }
.qa-icon { font-size: 18px; }

/* Message Bubble */
.message { display: flex; gap: 12px; margin-bottom: 20px; animation: fadeUp 0.3s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.message-avatar {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px; margin-top: 2px;
}
.message.user .message-avatar { background: linear-gradient(135deg, var(--accent), var(--cyan)); font-size: 13px; font-weight: 700; }
.message.assistant .message-avatar { background: var(--bg-card); border: 1px solid var(--border-subtle); }
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.message-name { font-size: 13px; font-weight: 600; }
.message-time { font-size: 11px; color: var(--text-muted); }
.message-body {
  font-size: 14px; line-height: 1.7; color: var(--text-primary);
  word-wrap: break-word; overflow-wrap: break-word;
}
.message-body p { margin-bottom: 8px; }
.message-body p:last-child { margin-bottom: 0; }
.message-body code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  background: rgba(124,58,237,0.15); padding: 2px 6px; border-radius: 4px; color: var(--accent-light);
}
.message-body pre {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 16px; margin: 12px 0; overflow-x: auto;
}
.message-body pre code { background: none; padding: 0; color: var(--text-primary); }
.message-body ul, .message-body ol { padding-left: 20px; margin: 8px 0; }
.message-body li { margin-bottom: 4px; }
.message-body strong { color: var(--accent-light); font-weight: 600; }
.message-body h1, .message-body h2, .message-body h3 { margin: 16px 0 8px; font-weight: 700; }
.message-body h1 { font-size: 20px; } .message-body h2 { font-size: 17px; } .message-body h3 { font-size: 15px; }
.message-body blockquote {
  border-left: 3px solid var(--accent); padding: 8px 16px;
  background: rgba(124,58,237,0.06); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 12px 0; color: var(--text-secondary);
}
.message-body img { max-width: 300px; border-radius: var(--radius); margin: 8px 0; }

/* Typing Indicator */
.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 8px 0; }
.typing-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-light); animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* Agent Tag */
.agent-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: rgba(124,58,237,0.15); color: var(--accent-light); margin-left: 8px;
}

/* Score Card in message */
.score-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 16px; margin: 12px 0;
}
.score-card h4 { color: var(--accent-light); margin-bottom: 8px; }
.score-meter {
  height: 8px; border-radius: 4px; background: var(--bg-input); margin: 8px 0;
}
.score-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.score-fill.excellent { background: linear-gradient(90deg, var(--green), #34d399); }
.score-fill.good { background: linear-gradient(90deg, var(--cyan), #22d3ee); }
.score-fill.average { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.score-fill.poor { background: linear-gradient(90deg, var(--rose), #fb7185); }

/* ===== Input Area ===== */
.input-area { padding: 16px 24px 12px; }
.input-wrapper {
  max-width: 800px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.input-wrapper:focus-within { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.input-row { display: flex; align-items: flex-end; padding: 8px; gap: 4px; }
.input-attachments { padding: 8px 12px 0; }
.attachment-preview { display: flex; gap: 8px; }
.attachment-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-subtle); }
.attachment-item { position: relative; }
.attachment-remove {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--rose); color: white; border: none;
  font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
textarea {
  flex: 1; resize: none; border: none; outline: none;
  background: transparent; color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5;
  padding: 8px 12px; max-height: 150px; min-height: 40px;
}
textarea::placeholder { color: var(--text-muted); }
.btn-attach, .btn-voice {
  width: 36px; height: 36px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.btn-attach:hover, .btn-voice:hover { color: var(--text-primary); background: var(--bg-input); }
.btn-voice.recording { color: var(--rose); background: rgba(244,63,94,0.15); animation: recordPulse 1.5s ease-in-out infinite; }
@keyframes recordPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.3); } 50% { box-shadow: 0 0 0 8px rgba(244,63,94,0); } }
.btn-send {
  width: 36px; height: 36px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.btn-send:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.input-footer { text-align: center; padding: 8px; font-size: 11px; color: var(--text-muted); max-width: 800px; margin: 0 auto; }

/* ===== Modals ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 28px; max-width: 480px; width: 90%;
  box-shadow: var(--shadow);
}
.modal-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.drop-zone {
  border: 2px dashed var(--border-subtle); border-radius: var(--radius);
  padding: 40px; text-align: center; color: var(--text-muted); transition: var(--transition); cursor: pointer;
}
.drop-zone:hover { border-color: var(--accent); background: rgba(124,58,237,0.05); }
.drop-zone svg { margin-bottom: 12px; color: var(--text-muted); }
.drop-zone p { font-size: 14px; }
.drop-hint { display: block; font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.file-label { color: var(--accent-light); cursor: pointer; text-decoration: underline; }
.modal-preview { margin-top: 16px; position: relative; text-align: center; }
.modal-preview img { max-width: 100%; max-height: 300px; border-radius: var(--radius); }
.btn-remove-img { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: white; border: none; font-size: 14px; cursor: pointer; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Score Modal */
.score-modal-content { max-width: 520px; }
.score-header { text-align: center; margin-bottom: 20px; }
.score-body { max-height: 400px; overflow-y: auto; }
.score-overall {
  text-align: center; padding: 20px; margin-bottom: 16px;
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-subtle);
}
.score-number { font-size: 48px; font-weight: 900; }
.score-number.high { color: var(--green); }
.score-number.mid { color: var(--amber); }
.score-number.low { color: var(--rose); }

/* Buttons */
.btn {
  padding: 10px 20px; border-radius: var(--radius); border: none;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #6d28d9); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-full { width: 100%; }

/* API Key Modal */
.apikey-modal-content { text-align: center; max-width: 420px; }
.apikey-header { margin-bottom: 24px; }
.apikey-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.apikey-header p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.apikey-header a { color: var(--accent-light); text-decoration: none; }
.apikey-input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-input); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: 14px; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px; outline: none; transition: var(--transition);
}
.apikey-input:focus { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.apikey-footer { font-size: 12px; color: var(--text-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100,100,200,0.2); border-radius: 3px; }

/* ===== Countdown Timer ===== */
.timer-container {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  margin-top: 8px;
}
.timer-circle {
  width: 40px; height: 40px; position: relative; flex-shrink: 0;
}
.timer-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-circle-bg { fill: none; stroke: var(--bg-input); stroke-width: 3; }
.timer-circle-progress {
  fill: none; stroke: var(--accent-light); stroke-width: 3;
  stroke-linecap: round; transition: stroke-dashoffset 1s linear;
}
.timer-circle-progress.warning { stroke: var(--amber); }
.timer-circle-progress.danger { stroke: var(--rose); }
.timer-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.timer-info { flex: 1; }
.timer-label { font-size: 11px; color: var(--text-muted); display: block; }
.timer-tip { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* ===== Confetti ===== */
.confetti-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden;
}
.confetti-piece {
  position: absolute; width: 10px; height: 10px;
  top: -10px; opacity: 0;
  animation: confettiFall 3s ease-in forwards;
}
.confetti-piece:nth-child(odd) { border-radius: 50%; }
.confetti-piece:nth-child(even) { border-radius: 2px; }
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.5); }
}

/* ===== Voice Wave Animation ===== */
.voice-wave-container {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; height: 32px; padding: 0 8px;
}
.voice-wave-bar {
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-light), var(--cyan));
  animation: waveBar 0.8s ease-in-out infinite;
}
.voice-wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.voice-wave-bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.voice-wave-bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.voice-wave-bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-wave-bar:nth-child(5) { height: 24px; animation-delay: 0.4s; }
.voice-wave-bar:nth-child(6) { height: 14px; animation-delay: 0.5s; }
.voice-wave-bar:nth-child(7) { height: 20px; animation-delay: 0.6s; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.btn-voice.recording .voice-wave-container { display: flex; }
.voice-status {
  display: none; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.25);
  font-size: 12px; font-weight: 500; color: var(--rose);
  animation: fadeUp 0.3s ease-out;
}
.voice-status.active { display: flex; }
.voice-status .voice-wave-mini {
  display: flex; align-items: center; gap: 2px; height: 16px;
}
.voice-wave-mini-bar {
  width: 2px; border-radius: 1px; background: var(--rose);
  animation: waveBar 0.6s ease-in-out infinite;
}
.voice-wave-mini-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.voice-wave-mini-bar:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.voice-wave-mini-bar:nth-child(3) { height: 14px; animation-delay: 0.2s; }
.voice-wave-mini-bar:nth-child(4) { height: 8px; animation-delay: 0.3s; }
.voice-wave-mini-bar:nth-child(5) { height: 12px; animation-delay: 0.4s; }

/* ===== Interview Complete Banner ===== */
.interview-complete-banner {
  text-align: center; padding: 24px; margin: 20px 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.5s ease-out;
}
.interview-complete-banner h3 {
  font-size: 20px; font-weight: 800; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.interview-complete-banner p { color: var(--text-secondary); font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .header-center { display: none; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: 1fr; }
  .timer-container { padding: 6px 8px; }
}
