:root {
  --bg-main: #0a0e17;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(24, 32, 50, 0.85);
  --bg-input: rgba(13, 18, 30, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.35);
  --primary-hover: #4338ca;

  --accent-blue: #38bdf8;
  --accent-purple: #c084fc;
  --accent-green: #10b981;
  --accent-red: #f43f5e;
  --accent-amber: #fbbf24;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-glass);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient dynamic glows */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.6), transparent 70%);
}

.glow-2 {
  width: 450px;
  height: 450px;
  bottom: 5%;
  right: 5%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%);
}

.glow-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 60%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.35), transparent 70%);
}

/* Views Management */
.view {
  display: none;
  position: relative;
  z-index: 1;
}

.view.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* Auth View */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  animation: slideUp 0.5s ease-out;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-logo-card {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-logo-card {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
}

.brand-icon.sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Form controls */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all 0.25s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(18, 24, 38, 0.95);
}

.icon-btn-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.icon-btn-toggle:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.icon-only {
  padding: 9px;
  border-radius: var(--radius-sm);
}

.pulse-on-hover:hover {
  animation: gentlePulse 1.5s infinite;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.alert.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-titles h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.env-tag {
  font-size: 11px;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px 5px 6px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-company {
  font-size: 10px;
  color: var(--text-muted);
}

/* Layout */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.header-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* Drop Zone */
.drop-zone {
  position: relative;
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  background: rgba(79, 70, 229, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
}

.drop-zone.compact {
  padding: 18px 20px;
}

.drop-zone.compact .drop-icon {
  display: none;
}

.drop-zone.compact .file-limits {
  display: none;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #6366f1;
  background: rgba(79, 70, 229, 0.08);
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.2);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  color: #818cf8;
  margin-bottom: 12px;
}

.drop-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.link-btn {
  background: none;
  border: none;
  color: #818cf8;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  font-size: inherit;
}

.file-limits {
  font-size: 12px;
  color: var(--text-muted);
}

/* File Queue */
.file-queue {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.link-danger {
  background: none;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-size: 12px;
}

.queue-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.queue-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.queue-status-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.queue-status-badge.error {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.queue-status-badge.processing {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

/* File Tabs (multi-file session) */
.file-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.file-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.file-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.file-tab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: white;
}

/* Results Section Container */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
  scroll-margin-top: 110px;
  animation: fadeIn 0.4s ease-out;
}

.results-section.hidden {
  display: none !important;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.metric-value.code {
  font-family: var(--font-mono);
  color: #38bdf8;
  letter-spacing: 1px;
  font-size: 24px;
}

.metric-unit {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.copy-mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.copy-mini-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.metric-stat-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat-pill.blue {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.stat-pill.purple {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.25);
  color: #c084fc;
}

.stat-pill.red {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fb7185;
}

.stat-tag {
  font-size: 10px;
  font-weight: 700;
}

.stat-num {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.time-range-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.time-point {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.time-lbl {
  color: var(--text-muted);
  font-weight: 700;
}

.time-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Action Bar */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.action-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.success-icon {
  color: var(--accent-green);
  flex-shrink: 0;
}

.action-info strong {
  font-size: 15px;
  display: block;
}

.action-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Chart */
.chart-card {
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.chart-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot.temp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
}

.legend-line.upper {
  width: 14px;
  height: 2px;
  background: #f43f5e;
}

.legend-line.lower {
  width: 14px;
  height: 2px;
  background: #60a5fa;
}

.chart-canvas-container {
  position: relative;
  width: 100%;
  height: 320px;
}

#tempChart {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glass-focus);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transform: translate(-50%, -120%);
}

/* Table */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.table-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.table-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.search-box input {
  padding: 8px 12px 8px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  width: 240px;
}

.search-box input:focus {
  outline: none;
  border-color: #6366f1;
}

.select-dropdown {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.temp-cell {
  font-family: var(--font-mono);
  font-weight: 700;
}

.temp-cell.high {
  color: #f43f5e;
}

.temp-cell.low {
  color: #38bdf8;
}

.temp-cell.normal {
  color: #34d399;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.status-badge.alarm-high {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.status-badge.alarm-low {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.status-badge.normal {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-buttons {
  display: flex;
  gap: 8px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.modal-card.modal-sm {
  max-width: 460px;
}

.modal-card.modal-sm .modal-footer {
  justify-content: center;
  padding: 16px 24px;
}

.modal-card.modal-sm #okDispatchModalBtn {
  min-width: 120px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-header h4 {
  font-size: 16px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
}

.modal-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 4px 14px var(--primary-glow);
  }
  50% {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.75);
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }
  .main-layout {
    padding: 20px 14px;
  }
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .action-buttons {
    flex-direction: column;
  }
}
