/* Voice Chat POC - Shared Styles */
:root {
  --primary: #ce079c;
  --primary-hover: #1dd88d;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
  --bg: #07101E;--s1:#0C1828;--s2:#111F32;--s3:#162640;
  --card-bg: #ffffff;
  --text: #b2560a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 1.5rem; }

/* Nav */
nav { display: flex; gap: 16px; align-items: center; }
nav a { color: var(--primary); text-decoration: none; font-size: 0.9rem; }
nav a:hover { text-decoration: underline; }
.btn-logout {
  background: none; border: 1px solid var(--danger); color: var(--danger);
  padding: 6px 14px; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem;
}
.btn-logout:hover { background: var(--danger); color: #fff; }

/* Cards */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.summary-card .value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.summary-card .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 24px; border: none; border-radius: var(--radius);
  font-size: 1rem; cursor: pointer; text-align: center; transition: background 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.9rem; }
.form-group input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { background: var(--bg); font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }

/* Messages */
.error-msg { color: var(--danger); font-size: 0.9rem; margin-top: 8px; }
.status-msg { padding: 10px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; }
.status-connecting { background: #fef3c7; color: #92400e; }
.status-active { background: #dcfce7; color: #166534; }
.status-ended { background: var(--bg); color: var(--text-muted); }
.status-error { background: #fee2e2; color: #991b1b; }

/* Login page centering */
.login-wrapper {
  display: flex; justify-content: center; align-items: center; min-height: 100vh;
}
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { text-align: center; margin-bottom: 24px; }

/* Transcript accordion */
.transcript-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.transcript-header {
  padding: 12px 16px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; background: var(--card-bg); border-radius: var(--radius);
}
.transcript-header:hover { background: var(--bg); }
.transcript-body { padding: 12px 16px; border-top: 1px solid var(--border); white-space: pre-wrap; font-size: 0.9rem; display: none; }
.transcript-item.open .transcript-body { display: block; }
.transcript-meta { font-size: 0.8rem; color: var(--text-muted); }
.chevron { transition: transform 0.2s; }
.transcript-item.open .chevron { transform: rotate(90deg); }

/* Filter bar */
.filter-bar { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar .form-group { margin-bottom: 0; }
.filter-bar input { width: 180px; }

/* Voice chat area */
.voice-chat-area { text-align: center; padding: 32px 0; }
.call-status { margin-top: 16px; font-size: 1.1rem; font-weight: 500; }

/* Empty state */
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }
