/* TodayTix ShowOps Console — Theme */
:root {
  --tt-primary: #E53E3E;
  --tt-primary-dark: #C53030;
  --tt-accent: #E53E3E;
  --tt-bg-dark: #1A202C;
  --tt-bg-darker: #171923;
  --bg-white: #ffffff;
  --bg-gray: #f7fafc;
  --border-color: #e2e8f0;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --color-success: #38a169;
  --color-warning: #d69e2e;
  --color-danger: #e53e3e;
  --color-muted: #a0aec0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gray); color: var(--text-primary); line-height: 1.5;
}

.header {
  background: var(--tt-bg-dark); color: white; padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.logo-text .accent { color: var(--tt-primary); }
.header-title { font-size: 14px; color: var(--text-muted); border-left: 1px solid #4a5568; padding-left: 16px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-user { font-size: 13px; color: var(--text-muted); }
.timestamp { font-size: 11px; color: var(--text-muted); display: flex; flex-direction: column; align-items: flex-end; }

.main-content { max-width: 1200px; margin: 0 auto; padding: 24px; }

.card {
  background: var(--bg-white); border-radius: 12px; padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 20px;
}
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-color);
  border-radius: 8px; font-size: 14px; outline: none;
}
.form-group input:focus { border-color: var(--tt-primary); box-shadow: 0 0 0 3px rgba(229,62,62,0.1); }

.btn {
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--tt-primary); color: white; }
.btn-primary:hover { background: var(--tt-primary-dark); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 12px; background: var(--bg-gray); font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid var(--border-color); }
td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
tr:hover { background: #f7fafc; }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--tt-primary); text-decoration: none; font-size: 13px; font-weight: 500; }
.back-link:hover { text-decoration: underline; }

.status-chip {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.status-active { background: #c6f6d5; color: #22543d; }
.status-canceled { background: #fed7d7; color: #9b2c2c; }
.status-processing { background: #fefcbf; color: #744210; }

.alert-box {
  border-radius: 10px; padding: 14px 18px; margin-bottom: 20px;
  font-size: 13px; border: 1px solid;
}
.alert-danger { background: #fff5f5; border-color: #fc8181; color: #9b2c2c; }
.alert-info { background: #ebf8ff; border-color: #90cdf4; color: #2a4365; }
.alert-box strong { font-weight: 700; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kv-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.kv-label { color: var(--text-muted); }
.kv-value { font-weight: 600; }

.timeline-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.timeline-item:last-child { border-bottom: none; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.timeline-dot.completed { background-color: var(--color-success); }
.timeline-dot.warning { background-color: var(--color-danger); }
.timeline-dot.pending { background-color: var(--color-muted); border: 2px solid #d1d5db; background: white; }
.timeline-content { flex: 1; }
.timeline-step { font-weight: 600; font-size: 13px; }
.timeline-time { font-size: 12px; color: var(--text-muted); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metric-card { background: var(--bg-white); border-radius: 10px; padding: 16px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.metric-value { font-size: 28px; font-weight: 700; color: var(--tt-primary); }
.metric-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
