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

:root {
  --primary: #000000;
  --secondary: #1a1a1a;
  --accent: #0066cc;
  --venice-red: rgb(221, 51, 0);
  --success: rgb(51, 153, 0);
  --danger: var(--venice-red);
  --warning: rgb(221, 136, 0);
  --dark: #000000;
  --light: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-primary: #000000;
  --text-secondary: #666666;
  --border-light: #e5e5e5;
  --venice-bg: rgb(238, 237, 228);
  --bg-gradient: var(--venice-bg);
  /* Clean blue gradient for basis meter */
  --basis-blue: #3b82f6; /* Clean blue */
  --basis-blue-light: rgba(
    59,
    130,
    246,
    0.3
  ); /* Light blue with transparency */
}

/* Night mode variables */
:root[data-theme="night"] {
  --primary: #ffffff;
  --secondary: #f7fafc;
  --accent: #4a90e2;
  --venice-red: rgb(255, 102, 102);
  --success: rgb(102, 204, 102);
  --danger: var(--venice-red);
  --warning: rgb(255, 193, 102);
  --dark: #ffffff;
  --light: #1a202c;
  --card-bg: rgba(45, 55, 72, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --border-light: #4a5568;
  --venice-bg: rgb(26, 32, 44);
  --bg-gradient: var(--venice-bg);
  /* Night mode basis meter colors */
  --basis-blue: #63b3ed;
  --basis-blue-light: rgba(99, 179, 237, 0.3);
}

body {
  font-family: "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  background: var(--venice-bg);
  min-height: 100vh;
  padding: 20px;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 40px;
}

header .title-part {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1em;
}

header .title-part.no-mobile {
  display: none;
}

@media (min-width: 768px) {
  header .title-part.no-mobile {
    display: inline;
  }
}

/* Footer Styles */
footer {
  margin-top: 60px;
  margin-bottom: 40px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-title {
  font-size: 2em;
  margin: 0 0 32px 0;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  );
  gap: 32px;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-column h3 {
  font-size: 1.1em;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 8px;
}

/* Footer Button Styles */
.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  min-height: 48px;
}

.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
  font-size: 1.1em;
}

/* Button Variants */
.footer-btn-primary {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.footer-btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Night mode footer buttons */
:root[data-theme="night"] .footer-btn-primary {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

:root[data-theme="night"]
  .footer-btn-primary:hover {
  background: #3a7bd5 !important;
  border-color: #3a7bd5 !important;
  color: white !important;
}

.footer-btn-secondary {
  background: var(--light);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.footer-btn-secondary:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

/* Night mode secondary footer buttons */
:root[data-theme="night"] .footer-btn-secondary {
  background: rgba(45, 55, 72, 0.8) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-light) !important;
}

:root[data-theme="night"]
  .footer-btn-secondary:hover {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

.footer-btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.footer-btn-accent:hover {
  background: #0052a3;
  border-color: #0052a3;
}

/* Footer Text Elements */
.footer-disclaimer {
  font-size: 0.85em;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0 0 0;
  font-style: italic;
}

.footer-note {
  font-size: 0.8em;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 8px 0 0 0;
  opacity: 0.8;
}

/* Buy Buttons Header */
.buy-buttons-header {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 20px 0;
  flex-wrap: wrap;
}

.tip-note {
  font-size: 0.9em;
  color: var(--text-secondary);
  text-align: center;
  margin: 10px 0 0 0;
  font-style: italic;
  opacity: 0.8;
}

/* Buy Button Styles */
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  min-height: 56px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.buy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.buy-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

.buy-btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Night mode buy buttons */
:root[data-theme="night"] .buy-btn-primary {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

:root[data-theme="night"] .buy-btn-primary:hover {
  background: #3a7bd5 !important;
  border-color: #3a7bd5 !important;
  color: white !important;
}

.buy-btn-accent {
  background: var(--venice-red);
  color: white;
  border-color: var(--venice-red);
}

.buy-btn-accent:hover {
  background: #b33f00;
  border-color: #b33f00;
}

/* Matrix Buy Buttons */
.matrix-buy-btn {
  background: var(--success);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.matrix-buy-btn:hover {
  background: #2d7a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.matrix-buy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.2em;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Live Prices Bar */
.price-bar {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.price-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Night mode price items */
:root[data-theme="night"] .price-item {
  background: rgba(45, 55, 72, 0.8);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

/* Clickable price item hover effects */
a.price-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Night mode price item hover */
:root[data-theme="night"] a.price-item:hover {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

a.price-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Add external link indicator for clickable price items */
a.price-item .price-label::after {
  content: " 🔗";
  font-size: 0.8em;
  opacity: 0.6;
  margin-left: 4px;
}

a.price-item:hover .price-label::after {
  opacity: 1;
}

.price-label {
  font-size: 0.875em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.price-value {
  font-size: 1.875em;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.price-change {
  font-size: 0.9em;
  margin-top: 5px;
}

.positive {
  color: var(--success);
}
.negative {
  color: var(--danger);
}

/* Action colors for decision matrix */
.action-buy {
  color: var(--success);
  font-weight: bold;
}
.action-sell {
  color: var(--danger);
  font-weight: bold;
}
.action-wait {
  color: var(--warning);
  font-weight: bold;
}

/* Main Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(400px, 1fr)
  );
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.card h2 {
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 1.5em;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

/* Countdown Timer */
.countdown {
  background: #fffdd0;
  color: #000;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 24px;
}

/* Night mode countdown */
:root[data-theme="night"] .countdown {
  background: #2d3748;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.countdown-value {
  font-size: 2.5em;
  font-weight: bold;
  margin: 10px 0;
}

.countdown-label {
  font-size: 1.1em;
  opacity: 0.9;
}

/* Utility Calculator */
.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9em;
}

.calc-row:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1em;
  margin-top: 12px;
  padding-top: 16px;
}

/* Basis Indicator */
.basis-meter {
  position: relative;
  height: 48px;
  background: linear-gradient(
    to right,
    var(--basis-blue) 0%,
    var(--basis-blue-light) 25%,
    transparent 45%,
    transparent 55%,
    var(--basis-blue-light) 75%,
    var(--basis-blue) 100%
  );
  border-radius: 24px;
  margin: 24px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.basis-marker {
  position: absolute;
  top: -8px;
  width: 3px;
  height: 64px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: left 0.5s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.basis-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8em;
  color: var(--text-secondary);
  font-weight: 500;
}

.basis-legend {
  font-size: 0.85em;
  color: var(--text-secondary);
  text-align: center;
  margin: 10px 0;
}

.basis-value {
  text-align: center;
  font-size: 2.5em;
  font-weight: 700;
  margin: 24px 0;
  letter-spacing: -0.02em;
}

/* Decision Matrix */
.decision-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.decision-table th {
  background: var(--text-primary);
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Night mode decision table header */
:root[data-theme="night"] .decision-table th {
  background: var(--accent) !important;
  color: white !important;
}

.decision-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9em;
}

.decision-table tr:hover {
  background: var(--light);
}

/* Night mode decision table */
:root[data-theme="night"]
  .decision-table
  tr:hover {
  background: rgba(45, 55, 72, 0.5);
}

/* Mobile Decision Table - Card Layout */
@media (max-width: 768px) {
  .decision-table {
    display: block;
    border: none;
    margin-top: 16px;
  }

  .decision-table thead {
    display: none;
  }

  .decision-table tbody {
    display: block;
  }

  .decision-table tr {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .decision-table tr:hover {
    background: var(--card-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* Night mode mobile cards */
  :root[data-theme="night"] .decision-table tr {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid var(--border-light);
  }

  :root[data-theme="night"]
    .decision-table
    tr:hover {
    background: rgba(45, 55, 72, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .decision-table td {
    display: block;
    padding: 8px 0;
    border-bottom: none;
    font-size: 0.9em;
    position: relative;
    padding-left: 45%;
    text-align: left;
  }

  .decision-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 40%;
  }

  /* Special styling for the action column on mobile */
  .decision-table .action-buy,
  .decision-table .action-sell,
  .decision-table .action-wait {
    padding-left: 0;
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }

  .decision-table .action-buy:before,
  .decision-table .action-sell:before,
  .decision-table .action-wait:before {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
  }

  /* Mobile matrix buttons */
  .matrix-buy-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }
}

/* Input Controls */
.input-group {
  margin: 15px 0;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9em;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Refresh Status */
.status-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 12em;
}

/* Night mode refresh status */
:root[data-theme="night"] .status-bar {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

/* Refresh status text */
.refresh-status-text {
  font-size: 0.8em;
  color: #718096;
  transition: opacity 0.3s ease;
}

:root[data-theme="night"] .refresh-status-text {
  color: var(--text-secondary);
}

/* Basis explanation styling */
.basis-explanation {
  font-size: 0.95em;
  color: #4a5568;
  margin: 10px 0 20px 0;
  text-align: center;
  padding: 10px;
  background: #f7fafc;
  border-radius: 8px;
}

:root[data-theme="night"] .basis-explanation {
  background: rgba(45, 55, 72, 0.6);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* Parity badges */
.parity-badges {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  gap: 10px;
}

.parity-badge {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: #e2e8f0;
  border-radius: 6px;
  font-size: 0.9em;
}

.parity-badge-title {
  font-weight: bold;
  color: #2d3748;
}

.parity-badge-value {
  color: #4a5568;
}

:root[data-theme="night"] .parity-badge {
  background: rgba(45, 55, 72, 0.8);
  border: 1px solid var(--border-light);
}

:root[data-theme="night"] .parity-badge-title {
  color: var(--text-primary);
}

:root[data-theme="night"] .parity-badge-value {
  color: var(--text-secondary);
}

/* Basis footnote */
.basis-footnote {
  font-size: 0.8em;
  color: #a0aec0;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

:root[data-theme="night"] .basis-footnote {
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

/* Simulation note */
.simulation-note {
  font-size: 0.9em;
  color: #718096;
  margin-bottom: 10px;
}

:root[data-theme="night"] .simulation-note {
  color: var(--text-secondary);
}

/* Calculator note */
.calc-note {
  font-size: 0.9em;
  color: #718096;
  margin: 10px 0;
}

:root[data-theme="night"] .calc-note {
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Alert Boxes */
.alert {
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 0.9em;
  border: 1px solid;
}

.alert-success {
  background: rgba(0, 0, 0, 0.025);
  color: var(--success);
  border-color: rgba(0, 0, 0, 0.125);
}

.alert-warning {
  background: rgba(0, 0, 0, 0.025);
  color: var(--venice-red);
  border-color: rgba(0, 0, 0, 0.125);
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Night Mode Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.theme-label {
  font-size: 0.9em;
  color: var(--text-secondary);
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--border-light);
  border-radius: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  outline: none;
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
}

.toggle-switch.active .toggle-slider {
  transform: translateX(24px);
}

.auto-indicator {
  font-size: 0.75em;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .price-bar {
    flex-direction: column;
  }

  h1 {
    font-size: 2em;
  }

  /* Footer Mobile Styles */
  footer {
    padding: 24px 20px;
    margin-top: 40px;
  }

  .footer-title {
    font-size: 1.6em;
    margin-bottom: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column {
    gap: 12px;
  }

  .footer-btn {
    padding: 14px 18px;
    font-size: 0.85em;
  }

  .footer-disclaimer,
  .footer-note {
    font-size: 0.8em;
  }

  /* Buy Buttons Mobile */
  .buy-buttons-header {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0 15px 0;
  }

  .buy-btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 1em;
    min-height: 50px;
  }

  .matrix-buy-btn {
    padding: 6px 12px;
    font-size: 0.8em;
  }

  /* Override mobile matrix button styles in table context */
  .decision-table .matrix-buy-btn {
    padding: 10px 16px;
    font-size: 0.85em;
    width: 100%;
    max-width: 220px;
  }

  .tip-note {
    font-size: 0.85em;
  }

  /* Mobile theme toggle */
  .theme-toggle {
    padding: 6px 12px;
    gap: 8px;
  }

  .theme-label {
    font-size: 0.8em;
  }

  .toggle-switch {
    width: 44px;
    height: 24px;
  }

  .toggle-slider {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
  }

  .toggle-switch.active .toggle-slider {
    transform: translateX(20px);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  footer {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .footer-title {
    font-size: 1.4em;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-btn {
    padding: 12px 16px;
    font-size: 0.8em;
    min-height: 44px;
  }

  .btn-icon {
    font-size: 1em;
  }
}
