/* ============================================================================
   FRUTIGER AERO GENERATOR - MAIN STYLESHEET
   Layout + component styling (base styles moved to css/base.css)
   ============================================================================ */

/* ============================================================================
   CONTAINER
   ============================================================================ */

.container {
  max-width: 1400px;
  margin: 12px auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 24px);
  gap: 8px;
}

/* ============================================================================
   HEADER / WINDOW TITLE BAR (7-Aero Style)
   ============================================================================ */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px 3px 8px;
  height: 28px;
  background: linear-gradient(
    180deg,
    rgba(190, 220, 255, 0.95) 0%,
    rgba(140, 190, 255, 0.92) 45%,
    rgba(100, 170, 255, 0.90) 50%,
    rgba(120, 180, 255, 0.92) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px 5px 0 0;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 3px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  gap: 8px;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 5px 5px 0 0;
  pointer-events: none;
}

header h1 {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    2px 0 0 rgba(255, 255, 255, 0.3),
    -2px 0 0 rgba(255, 255, 255, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.3),
    0 -2px 0 rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  margin: 0;
  z-index: 1;
}

/* Window control buttons */
.window-controls {
  display: flex;
  gap: 2px;
  z-index: 2;
}

.minimize-btn, .maximize-btn, .close-btn {
  width: 23px;
  height: 20px;
  background: linear-gradient(
    180deg,
    rgba(200, 220, 255, 0.8) 0%,
    rgba(160, 200, 255, 0.75) 100%
  );
  border: 1px solid #757575;
  border-radius: 2px;
  font-size: 9px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 100ms ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimize-btn:hover, .maximize-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(160, 210, 255, 0.9) 0%,
    rgba(100, 190, 255, 0.85) 100%
  );
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 6px rgba(0, 100, 200, 0.3);
}

.minimize-btn:active, .maximize-btn:active {
  box-shadow: 
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(1px);
}

.close-btn {
  background: linear-gradient(
    180deg,
    rgba(220, 140, 120, 0.8) 0%,
    rgba(200, 110, 90, 0.75) 100%
  );
}

.close-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(240, 160, 140, 0.9) 0%,
    rgba(220, 130, 110, 0.85) 100%
  );
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 8px rgba(200, 80, 60, 0.4);
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

main {
  display: flex;
  gap: 8px;
  flex: 1;
  min-height: 0;
  background: var(--aero-glass-bg);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0 5px 5px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  padding: 6px;
  overflow: visible;
}

/* ============================================================================
   SIDEBAR (Window Panel)
   ============================================================================ */

.sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible;
  padding-right: 4px;
  flex-shrink: 0;
  height: fit-content;
}

.sidebar-section {
  background: linear-gradient(
    180deg,
    rgba(245, 250, 255, 0.9) 0%,
    rgba(225, 235, 250, 0.85) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(100, 140, 200, 0.3) rgba(100, 140, 200, 0.3) rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  padding: 10px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.sidebar-section:nth-child(3) {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}
  flex-shrink: 0;
}

.sidebar-section h3 {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.85);
}

/* Theme selector */
#theme-selector,
#subtheme-selector {
  width: 100%;
  padding: 4px 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 248, 252, 0.9) 100%
  );
  border: 1px solid;
  border-color: rgba(100, 140, 200, 0.4) rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.6) rgba(100, 140, 200, 0.4);
  border-radius: 2px;
  font-size: 10px;
  font-family: "Segoe UI", inherit;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 150ms ease;
}

#theme-selector:hover,
#subtheme-selector:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(240, 248, 255, 0.92) 100%
  );
}

#theme-selector:focus,
#subtheme-selector:focus {
  outline: none;
  border-color: rgba(60, 127, 177, 0.6) rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.6) rgba(60, 127, 177, 0.6);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 3px rgba(60, 127, 177, 0.4);
}

.subtheme-row {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Element selector buttons */
.element-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.element-btn {
  padding: 8px 5px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 245, 252, 0.8) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(100, 140, 200, 0.35) rgba(100, 140, 200, 0.35) rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 120ms ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 55px;
}

.element-btn span:first-child {
  font-size: 16px;
  display: block;
}

.element-btn:hover:not(.disabled) {
  background: linear-gradient(
    180deg,
    rgba(177, 223, 253, 0.9) 0%,
    rgba(160, 210, 250, 0.85) 100%
  );
  border-color: rgba(255, 255, 255, 0.6) rgba(60, 127, 177, 0.45) rgba(60, 127, 177, 0.45) rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(60, 127, 177, 0.2);
}

.element-btn.active {
  background: linear-gradient(
    180deg,
    rgba(100, 190, 255, 0.95) 0%,
    rgba(60, 150, 220, 0.9) 100%
  );
  border-color: rgba(255, 255, 255, 0.6) rgba(40, 100, 160, 0.5) rgba(40, 100, 160, 0.5) rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 -1px 0 rgba(255, 255, 255, 0.3);
}

.element-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: rgba(0, 0, 0, 0.5);
  background: linear-gradient(
    180deg,
    rgba(220, 235, 250, 0.7) 0%,
    rgba(200, 220, 245, 0.65) 100%
  );
}

.element-btn.disabled:hover {
  background: linear-gradient(
    180deg,
    rgba(220, 235, 250, 0.7) 0%,
    rgba(200, 220, 245, 0.65) 100%
  );
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Controls area */
.controls-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.control-group {
  margin-bottom: 8px;
}

.control-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.control-group input[type="text"],
.control-group select,
.control-group input[type="range"] {
  width: 100%;
  padding: 4px 5px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  border: 1px solid;
  border-color: rgba(100, 140, 200, 0.4) rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.6) rgba(100, 140, 200, 0.4);
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 248, 252, 0.9) 100%
  );
  color: rgba(0, 0, 0, 0.85);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 120ms ease;
}

.control-group input[type="text"]:focus,
.control-group select:focus {
  outline: none;
  border-color: rgba(60, 127, 177, 0.5) rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.6) rgba(60, 127, 177, 0.5);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 3px rgba(60, 127, 177, 0.3);
  background: rgba(255, 255, 255, 0.98);
}

.control-group input[type="range"] {
  padding: 0;
  height: 18px;
  accent-color: var(--aero-blue-accent);
  cursor: pointer;
}

.control-group input[type="range"]:focus {
  outline: none;
}

/* Value display for sliders */
.value-display {
  display: inline-block;
  font-weight: 600;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid rgba(100, 140, 200, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(100, 140, 200, 0.2);
}

.btn-action {
  flex: 1;
  padding: 6px 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 245, 252, 0.8) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(100, 140, 200, 0.35) rgba(100, 140, 200, 0.35) rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 120ms ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-action:hover {
  background: linear-gradient(
    180deg,
    rgba(177, 223, 253, 0.9) 0%,
    rgba(160, 210, 250, 0.85) 100%
  );
  border-color: rgba(255, 255, 255, 0.6) rgba(60, 127, 177, 0.45) rgba(60, 127, 177, 0.45) rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(60, 127, 177, 0.2);
}

.btn-action:active {
  box-shadow: 
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.08);
  transform: translateY(1px);
}

/* ============================================================================
   CONTENT AREA (Preview + Code)
   ============================================================================ */

.content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

/* Preview pane */
.preview-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(245, 250, 255, 0.9) 0%,
    rgba(225, 235, 250, 0.85) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(100, 140, 200, 0.3) rgba(100, 140, 200, 0.3) rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.preview-header {
  padding: 6px 10px;
  background: linear-gradient(
    180deg,
    rgba(200, 220, 255, 0.85) 0%,
    rgba(160, 200, 255, 0.8) 100%
  );
  font-size: 11px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(100, 140, 200, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.preview-content {
  flex: 1;
  min-height: 280px;
  max-height: 400px;
  overflow: auto;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(230, 240, 250, 0.6) 0%,
    rgba(210, 230, 250, 0.6) 100%
  );
}

/* Isolate preview content - reset to default fonts unless overridden by theme */
.preview-content * {
  font-family: inherit;
}

/* Code pane */
.code-pane {
  flex: 0 0 auto;
  height: 350px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(245, 250, 255, 0.9) 0%,
    rgba(225, 235, 250, 0.85) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(100, 140, 200, 0.3) rgba(100, 140, 200, 0.3) rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.code-header {
  padding: 6px 10px;
  background: linear-gradient(
    180deg,
    rgba(200, 220, 255, 0.85) 0%,
    rgba(160, 200, 255, 0.8) 100%
  );
  border-bottom: 1px solid rgba(100, 140, 200, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.code-header h3 {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  font-family: 'Pixelated MS Sans Serif', 'MS Sans Serif', Arial, sans-serif;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  color: rgba(0, 0, 0, 0.85);
}

.code-tabs {
  display: flex;
  gap: 1px;
}

.code-tab {
  padding: 4px 12px;
  background: linear-gradient(
    180deg,
    rgba(200, 220, 255, 0.7) 0%,
    rgba(170, 200, 255, 0.65) 100%
  );
  border: 1px solid rgba(100, 140, 200, 0.35);
  border-radius: 2px 2px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition: all 100ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.code-tab:hover {
  background: linear-gradient(
    180deg,
    rgba(210, 230, 255, 0.8) 0%,
    rgba(180, 210, 255, 0.75) 100%
  );
}

.code-tab.active {
  background: linear-gradient(
    180deg,
    rgba(100, 190, 255, 0.9) 0%,
    rgba(60, 150, 220, 0.85) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(40, 100, 160, 0.4);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.code-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(250, 252, 255, 0.95) 0%,
    rgba(240, 248, 255, 0.9) 100%
  );
  padding: 6px;
  gap: 6px;
  overflow: hidden;
}

.code-display {
  flex: 1;
  min-height: 0;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.85);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid;
  border-color: rgba(100, 140, 200, 0.25) rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.6) rgba(100, 140, 200, 0.25);
  border-radius: 2px;
  padding: 8px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  line-height: 1.5;
}

.copy-btn {
  padding: 6px 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 245, 252, 0.8) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(100, 140, 200, 0.35) rgba(100, 140, 200, 0.35) rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 120ms ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
  align-self: flex-start;
}

.copy-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(177, 223, 253, 0.9) 0%,
    rgba(160, 210, 250, 0.85) 100%
  );
  border-color: rgba(255, 255, 255, 0.6) rgba(60, 127, 177, 0.45) rgba(60, 127, 177, 0.45) rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(60, 127, 177, 0.2);
}

.copy-btn:active {
  box-shadow: 
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(1px);
}

.copy-btn.copied {
  background: linear-gradient(
    180deg,
    rgba(180, 250, 180, 0.85) 0%,
    rgba(150, 240, 150, 0.8) 100%
  );
  color: rgba(20, 100, 20, 0.9);
}

.download-css-btn {
  padding: 6px 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 240, 180, 0.85) 0%,
    rgba(250, 225, 150, 0.8) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(180, 140, 100, 0.35) rgba(180, 140, 100, 0.35) rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(60, 40, 0, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 120ms ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
  align-self: flex-start;
  margin-left: 6px;
}

.download-css-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 250, 200, 0.9) 0%,
    rgba(255, 235, 170, 0.85) 100%
  );
  border-color: rgba(255, 255, 255, 0.6) rgba(200, 160, 100, 0.45) rgba(200, 160, 100, 0.45) rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(180, 140, 100, 0.2);
}

.download-css-btn:active {
  box-shadow: 
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(1px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  background: linear-gradient(
    180deg,
    rgba(245, 250, 255, 0.9) 0%,
    rgba(225, 235, 250, 0.85) 100%
  );
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(100, 140, 200, 0.3) rgba(100, 140, 200, 0.3) rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.75);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

footer span {
  color: rgba(0, 0, 0, 0.75);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  line-height: 1.4;
  font-size: 13px;
}

footer a {
  color: rgba(0, 60, 150, 0.95);
  text-decoration: none;
  font-weight: 600;
  transition: color 100ms ease;
  cursor: pointer;
}

footer a:hover {
  color: rgba(0, 80, 200, 1);
  text-decoration: underline;
}

.footer-content {
  border-top: 1px solid rgba(100, 140, 200, 0.2);
  padding-top: 8px;
}

.footer-credits {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

/* ============================================================================
   SCROLLBAR STYLING (Webkit browsers)
   ============================================================================ */

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(200, 220, 255, 0.4) 0%,
    rgba(160, 200, 255, 0.3) 100%
  );
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(170, 210, 255, 0.8) 0%,
    rgba(120, 180, 255, 0.7) 100%
  );
  border-radius: 6px;
  border: 1px solid rgba(80, 140, 200, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(190, 225, 255, 0.9) 0%,
    rgba(140, 200, 255, 0.8) 100%
  );
}

::-webkit-scrollbar-corner {
  background: linear-gradient(
    180deg,
    rgba(200, 220, 255, 0.4) 0%,
    rgba(160, 200, 255, 0.3) 100%
  );
}

/* ============================================================================
   THEME DOCUMENTATION SECTION
   ============================================================================ */

.theme-docs {
  background: linear-gradient(180deg, rgba(200, 220, 255, 0.15) 0%, rgba(150, 180, 220, 0.1) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 150, 200, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.theme-docs h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(40, 80, 140, 0.9);
  letter-spacing: -0.5px;
}

.theme-docs .aero-tab-container {
  background: transparent;
}

.theme-tabs {
  position: relative;
  margin: 0 0 -1px 0;
  text-indent: 0;
  list-style-type: none;
  display: flex;
  padding-left: 0;
  background: transparent;
  flex-wrap: wrap;
  gap: 4px;
}

.theme-tabs li[role="tab"] {
  border: 1px solid rgba(100, 150, 200, 0.3);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 16px;
  margin-bottom: 0;
  margin-right: 0;
  background: linear-gradient(180deg, rgba(200, 220, 255, 0.3) 0%, rgba(150, 190, 240, 0.2) 100%);
  backdrop-filter: blur(4px);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(40, 80, 140, 0.75);
  transition: all 200ms ease-out;
  user-select: none;
}

.theme-tabs li[role="tab"]:hover {
  background: linear-gradient(180deg, rgba(220, 235, 255, 0.5) 0%, rgba(180, 210, 250, 0.35) 100%);
  color: rgba(30, 60, 120, 0.95);
  border-color: rgba(120, 170, 220, 0.4);
}

.theme-tabs li[role="tab"][aria-selected="true"] {
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.8) 0%, rgba(210, 230, 255, 0.6) 100%);
  border-color: rgba(100, 150, 200, 0.5);
  color: rgba(20, 50, 110, 1);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(100, 150, 200, 0.15);
  margin-top: 0;
}

.theme-docs .aero-tab-contents {
  background: linear-gradient(180deg, rgba(240, 245, 255, 0.9) 0%, rgba(220, 235, 255, 0.8) 100%);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(100, 150, 200, 0.3);
  border-radius: 0 6px 6px 6px;
  padding: 16px;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.theme-docs .aero-tab-content {
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(40, 60, 90, 0.85);
}

.theme-docs .aero-tab-content.active {
  display: block;
}

.theme-docs .aero-tab-content h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(30, 70, 130, 0.95);
  letter-spacing: -0.3px;
}

.theme-docs .aero-tab-content p {
  margin: 0 0 10px 0;
  color: rgba(40, 60, 90, 0.8);
}

.theme-docs .aero-tab-content ul {
  margin: 8px 0 12px 20px;
  padding: 0;
  list-style: disc;
}

.theme-docs .aero-tab-content li {
  margin: 4px 0;
  color: rgba(40, 60, 90, 0.75);
}

.theme-docs .aero-tab-content em {
  color: rgba(70, 100, 150, 0.75);
  font-style: italic;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1200px) {
  main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-height: 200px;
    flex-shrink: 0;
  }

  .content {
    flex: 1;
    min-height: 0;
  }

  .code-pane {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 8px auto;
    padding: 0 8px;
  }

  header {
    height: 26px;
    padding: 2px 6px;
  }

  header h1 {
    font-size: 12px;
  }

  .element-selector {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .code-pane {
    height: 150px;
  }

  .preview-content {
    padding: 10px;
  }

  footer {
    padding: 8px 10px;
    font-size: 7px;
  }

  footer span {
    display: block;
  }
}
