:root {
  --wh-bg: #ffffff;
  --wh-text: #000055;
  --wh-primary: #99ccff;
  --wh-secondary: #ddeeff;
  --wh-accent: #ff3266;
  --wh-accent-bg: #ffeeee;
}

body {
  font-family: "CircularXX", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--wh-bg);
  color: var(--wh-text);
}

.wh-navbar {
  background-color: var(--wh-secondary);
}

.wh-navbar .navbar-brand {
  color: var(--wh-text);
}

.wh-btn-primary {
  background-color: var(--wh-primary);
  border-color: var(--wh-primary);
  color: var(--wh-text);
}

.wh-btn-primary:hover {
  background-color: #80bfff;
  border-color: #80bfff;
  color: var(--wh-text);
}

.wh-btn-accent {
  background-color: var(--wh-accent);
  border-color: var(--wh-accent);
  color: #ffffff;
}

.wh-btn-accent:hover {
  background-color: #e6295c;
  border-color: #e6295c;
  color: #ffffff;
}

.wh-card {
  border: 1px solid var(--wh-secondary);
  border-radius: 0.5rem;
}

.wh-login-card {
  max-width: 400px;
  margin: 4rem auto;
}

/* Chart containers */
.wh-chart-container {
  position: relative;
  max-height: 300px;
}

.wh-progress-label {
  min-width: 3rem;
  text-align: right;
}

/* Utility */
.wh-text-xs {
  font-size: 0.75rem;
}

/* KPI cards */
.wh-kpi-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wh-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wh-text);
  line-height: 1.2;
}

.wh-kpi-sub {
  font-size: 1rem;
  font-weight: 400;
  color: #999;
}

/* Attention section */
.wh-attention-section {
  border-left: 4px solid var(--wh-accent);
}

/* Progress bar */
.wh-progress {
  height: 8px;
  background-color: var(--wh-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.wh-progress-fill {
  height: 100%;
  background-color: var(--wh-text);
  border-radius: 4px;
  transition: width 0.3s;
}

/* Status badges */
.wh-badge-active,
.wh-badge-approved {
  background-color: #d4edda;
  color: #155724;
}

.wh-badge-pending {
  background-color: #e9ecef;
  color: #6c757d;
}

.wh-badge-in_progress {
  background-color: #cce5ff;
  color: #004085;
}

.wh-badge-internal_review {
  background-color: #fff3cd;
  color: #856404;
}

.wh-badge-client_review {
  background-color: #fff3cd;
  color: #856404;
}

.wh-badge-revision {
  background-color: var(--wh-accent-bg);
  color: var(--wh-accent);
}

.wh-badge-on_hold {
  background-color: #e9ecef;
  color: #6c757d;
}

.wh-badge-completed {
  background-color: #d4edda;
  color: #155724;
}

.wh-badge-cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

/* Phase timeline */
.wh-phase-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.wh-phase-item:last-child {
  border-bottom: none;
}

.wh-phase-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.wh-phase-icon-approved {
  background-color: #d4edda;
  color: #155724;
}

.wh-phase-icon-active {
  background-color: #cce5ff;
  color: #004085;
}

.wh-phase-icon-revision {
  background-color: var(--wh-accent-bg);
  color: var(--wh-accent);
}

.wh-phase-icon-pending {
  background-color: #e9ecef;
  color: #6c757d;
}

/* Tabs */
.wh-tabs .nav-link {
  color: var(--wh-text);
}

.wh-tabs .nav-link.active {
  color: var(--wh-text);
  border-bottom-color: var(--wh-text);
  font-weight: 600;
}

/* File rows */
.wh-file-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.wh-file-row:last-child {
  border-bottom: none;
}

/* Messages */
.wh-message {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.wh-message:last-child {
  border-bottom: none;
}

.wh-message-meta {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.wh-badge-pm {
  background-color: #cce5ff;
  color: #004085;
}

.wh-badge-client {
  background-color: #d4edda;
  color: #155724;
}

.wh-badge-production {
  background-color: #e8daef;
  color: #6c3483;
}

/* Render placeholder */
.wh-render-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
}

/* QC checklist */
.wh-qc-item {
  padding: 0.4rem 0;
}

.wh-qc-checked {
  text-decoration: line-through;
  color: #999;
}

/* Annotation canvas */
.wh-annotation-canvas-wrapper {
  border: 1px solid var(--wh-secondary);
  border-radius: 0.25rem;
  overflow: hidden;
}

.wh-annotation-canvas-wrapper canvas {
  display: block;
}

.wh-annotation-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wh-annotation-item {
  font-size: 0.9rem;
}

.wh-color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.wh-color-btn.active {
  border-color: var(--wh-text);
}

.wh-color-btn:hover {
  border-color: #999;
}

[data-annotation-tool].active {
  background-color: var(--wh-primary);
  border-color: var(--wh-primary);
  color: var(--wh-text);
}
