:root {
  /* Modern color palette */
  --bg: #F0F2F7;
  --fg: #FFFFFF;
  --muted: #FFFFFF;
  --card: #3E3D6D;
  --accent: #3E3D6D;
  
  /* Status colors with new base */
  --status-available: #22c55e;
  --status-unavailable: #f59e0b;
  --status-busy: #ef4444;
  --status-call: #6366f1;
  --status-ring: #8b5cf6;
  
  /* Additional colors */
  --border: rgba(255, 255, 255, 0.1);
  --hover: rgba(255, 255, 255, 0.05);
  --long-wait: rgba(239, 68, 68, 0.2);
}

* { box-sizing: border-box; }

html, body { 
  height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--fg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

header { 
  margin-bottom: 1.5rem;
  color: #3E3D6D;
}

h1 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0;
  color: #3E3D6D;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

/* Statistics Styling */
.stats-card {
  background: var(--card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.muted {
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 0;
}

.mono {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
}

.center { text-align: center; }

/* Table Styling */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 500;
  text-align: left;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

tr:hover { background: var(--hover); }

/* Caller Info */
.caller-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.caller-name {
  font-weight: 500;
  color: var(--fg);
}

.caller-number {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Active Call Information */
.agent-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.active-call {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.375rem;
  margin-top: 0.25rem;
}

.call-duration {
  color: var(--fg);
  font-weight: 500;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
}

/* Queue Status Colors - with transparency for better contrast on dark backgrounds */
tr.status-available { background-color: rgba(34, 197, 94, 0.1); }
tr.status-unavailable { background-color: rgba(245, 158, 11, 0.1); }
tr.status-in-call { background-color: rgba(99, 102, 241, 0.1); }
tr.status-busy { background-color: rgba(239, 68, 68, 0.1); }
tr.status-ringing { background-color: rgba(139, 92, 246, 0.1); }

/* Long Wait Highlight */
.long-wait {
  background-color: var(--long-wait);
}

/* Long Call Highlight - 10+ minutes */
.long-call {
  background-color: var(--long-wait) !important;
}
