/* ==========================================================================
   Filament Dryer Box Pro - Premium Glassmorphism Design System
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-surface: rgba(18, 26, 43, 0.75);
  --bg-card: rgba(22, 33, 56, 0.65);
  --bg-card-hover: rgba(28, 42, 72, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.4);
  
  --text-main: #f3f6fc;
  --text-muted: #8e9bb5;
  --text-dim: #5c6882;

  --accent-temp: #ff5e36;
  --accent-temp-glow: rgba(255, 94, 54, 0.35);
  --accent-hum: #00d2ff;
  --accent-hum-glow: rgba(0, 210, 255, 0.35);
  --accent-cyan: #00f2fe;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-subtle);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.2);
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 210, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(255, 94, 54, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Glass Card Base Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ff5e36, #00d2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.logo-badge .glow-orb {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: inherit;
  filter: blur(10px);
  opacity: 0.6;
  z-index: -1;
}

.logo-icon {
  width: 24px;
  height: 24px;
}

.app-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #8e9bb5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.header-center {
  display: flex;
  align-items: center;
}

.board-badges {
  display: flex;
  align-items: center;
  background: rgba(14, 21, 37, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  gap: 0.75rem;
}

.board-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: var(--transition-smooth);
}

.board-chip.connected .chip-dot {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.board-chip.active-relay .chip-dot {
  background: var(--accent-temp);
  box-shadow: 0 0 8px var(--accent-temp);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.chip-status {
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.board-chip.connected .chip-status {
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  font-weight: 600;
}

.board-chip.active-relay .chip-status {
  color: #fff;
  background: rgba(255, 94, 54, 0.35);
  border: 1px solid rgba(255, 94, 54, 0.5);
  font-weight: 700;
}


.chip-link-icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #0072ff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-icon-svg {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-subtle {
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-subtle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Dashboard Container */
.dashboard-container {
  padding: 1.75rem 2rem;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Top Overview Grid */
.top-overview-grid {
  display: grid;
  grid-template-columns: 340px 340px 1fr;
  gap: 1.5rem;
}

/* Gauge Cards */
.gauge-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  font-size: 1.25rem;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.gauge-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.circular-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
}

.gauge-progress {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.temp-progress {
  stroke: url(#tempGrad, var(--accent-temp));
  filter: drop-shadow(0 0 8px var(--accent-temp-glow));
}

.hum-progress {
  stroke: var(--accent-hum);
  filter: drop-shadow(0 0 8px var(--accent-hum-glow));
}

.gauge-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.gauge-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.gauge-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  font-weight: 500;
}

.gauge-footer {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.pill-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.pill-val {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.1rem;
}

/* Process Status Card */
.process-status-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-indicator-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.status-indicator-pill.state-heating .status-dot,
.status-indicator-pill.state-drying .status-dot {
  background: var(--accent-temp);
  box-shadow: 0 0 10px var(--accent-temp);
  animation: pulse-dot 1s infinite ease-in-out;
}

.status-indicator-pill.state-paused .status-dot {
  background: var(--accent-amber);
}

.status-indicator-pill.state-completed .status-dot {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.active-profile-banner {
  background: rgba(14, 22, 38, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0;
}

.banner-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: block;
}

.banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.heater-relay-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.relay-bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.heater-relay-badge.relay-on {
  background: rgba(255, 94, 54, 0.15);
  border-color: rgba(255, 94, 54, 0.35);
  color: var(--accent-temp);
}

.heater-relay-badge.relay-on .relay-bulb {
  background: var(--accent-temp);
  box-shadow: 0 0 10px var(--accent-temp);
}

/* Timer Display */
.timer-display-box {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
}

.timer-digits {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.timer-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  margin: 0.85rem 0 0.5rem;
  overflow: hidden;
}

.timer-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-hum), var(--accent-temp));
  border-radius: inherit;
  transition: width 0.4s ease;
}

.timer-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timer-labels strong {
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
}

.process-controls-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-action {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.btn-start {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-start:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-pause {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-pause:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.25);
}

.btn-stop {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-stop:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.autonomous-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  line-height: 1.4;
}

.autonomous-notice svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
  margin-top: 1px;
}

/* Filament Section */
.filament-section {
  padding: 1.75rem 2rem;
}

.section-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 1.75rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.preset-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.preset-card {
  background: rgba(14, 21, 37, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.preset-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

.preset-card.active {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.preset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.preset-temp-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-temp);
  background: rgba(255, 94, 54, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.preset-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preset-details span strong {
  color: var(--text-main);
}

/* Custom Profile Panel */
.custom-profile-panel {
  background: rgba(10, 15, 26, 0.9);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.25rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.custom-panel-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.custom-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  width: 100%;
  padding-right: 3rem;
}

.unit-tag {
  position: absolute;
  right: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  pointer-events: none;
}

.input-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.custom-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Bottom Analytics Grid */
.bottom-analytics-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

/* Chart Card */
.chart-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.temp-color-bg { background: var(--accent-temp); }
.hum-color-bg { background: var(--accent-hum); }
.target-color-bg { background: rgba(255, 255, 255, 0.4); }
.relay-color-bg { background: var(--accent-red); }

.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
  margin-top: 1rem;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.duty-badge {
  background: rgba(255, 94, 54, 0.15);
  border: 1px solid rgba(255, 94, 54, 0.4);
  color: #ff8a65;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
}

/* Terminal Card */
.terminal-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.terminal-body {
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.log-line { line-height: 1.4; word-break: break-all; }
.log-system { color: var(--accent-cyan); }
.log-info { color: #fff; }
.log-warn { color: var(--accent-amber); }
.log-muted { color: var(--text-dim); }

.terminal-input-bar {
  display: flex;
  gap: 0.5rem;
}

.terminal-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  outline: none;
}

.terminal-input-bar input:focus {
  border-color: var(--accent-cyan);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-box {
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.dfu-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.code-box {
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #a5f3fc;
  overflow-x: auto;
  margin: 0.75rem 0;
}

.dfu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.82rem;
}

.dfu-table th, .dfu-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.dfu-table th {
  color: var(--text-muted);
  font-weight: 600;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .top-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-status-card {
    grid-column: span 2;
  }
  .bottom-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-overview-grid {
    grid-template-columns: 1fr;
  }
  .process-status-card {
    grid-column: span 1;
  }
}
