@import "https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap";

/* src/index.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07060a;
  --bg-raised: #07060a;
  --surface: #121721;
  --surface-hover: #1d2534;
  --border: #9391a11a;
  --border-strong: #9391a129;
  --text: #ede8e0;
  --text-secondary: #9391a1;
  --text-tertiary: #555161;
  --accent: #c9956a;
  --accent-hover: #daa87e;
  --accent-subtle: #c9956a1a;
  --accent-medium: #c9956a33;
  --success: #7dae6e;
  --success-subtle: #7dae6e1a;
  --danger: #c06868;
  --danger-subtle: #c068681a;
  --warning: #c9a84e;
  --info: #6a9ab8;
  --info-subtle: #6a9ab81a;
  --display: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "SF Mono", "Fira Code", "Consolas", monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --nav-height: 56px;
  --player-height: 72px;
  --sidebar-width: 280px;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100vh;
  line-height: 1.5;
}

#root {
  overflow: hidden;
  height: 100vh;
}

button {
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--body);
  background: var(--surface);
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
  transition: all .2s;
  font-weight: 500;
  line-height: 1.4;
}

button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

input, select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: var(--body);
  padding: 8px 12px;
  transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

input::placeholder {
  color: var(--text-tertiary);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23605850'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  padding-right: 28px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #ede8e01a;
  border: none;
  border-radius: 2px;
  height: 4px;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--text);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 1px 4px #0000004d;
}

input[type="range"]::-moz-range-thumb {
  background: var(--text);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 1px 4px #0000004d;
}

input[type="range"]:focus {
  box-shadow: none;
  border: none;
}

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

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: #ede8e014;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ede8e026;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 #7dae6e66;
  }

  50% {
    box-shadow: 0 0 0 4px #7dae6e00;
  }
}

@keyframes glow-accent {
  0%, 100% {
    box-shadow: 0 4px 20px #c9956a33;
  }

  50% {
    box-shadow: 0 4px 24px #c9956a59;
  }
}

@keyframes ascii-breathe {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .82;
  }
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover:after {
  content: attr(data-tooltip);
  position: absolute;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  animation: fade-in .15s ease;
  background: #07060af2;
  border: 1px solid #ffffff1a;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.3;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

@keyframes sweep-pulse {
  0%, 100% {
    box-shadow: 0 0 #c9956a80;
  }

  50% {
    box-shadow: 0 0 0 3px #c9956a00;
  }
}

input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
