:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: #213547;
  background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-bs-theme="dark"] {
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vanilla:hover {
  filter: drop-shadow(0 0 2em #f7df1eaa);
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* custom */
#featured-3{
  max-width: 1130px !important;
}

/* language switcher */
.lang-switcher {
  gap: 4px;
}

.lang-btn {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  opacity: 1;
  transition: color 0.2s ease;
  padding: 2px 6px !important;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.lang-btn-active {
  color: #fff !important;
  font-weight: 600;
}

[data-bs-theme="dark"] .btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #6c757d;
  --bs-btn-border-color: #6c757d;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #5c636a;
  --bs-btn-hover-border-color: #565e64;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #565e64;
  color: #fff;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color: #adb5bd;
  --bs-btn-border-color: #adb5bd;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #adb5bd;
  --bs-btn-hover-border-color: #adb5bd;
}

/* Spinner overlay */
.spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-overlay .spinner-border {
  width: 3.5rem;
  height: 3.5rem;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
  user-select: none;
}

.drop-zone:hover,
.drop-zone--over {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.04);
}

.drop-zone--selected {
  border-color: #198754;
  background-color: rgba(25, 135, 84, 0.04);
}

.drop-zone:has(input.is-invalid) {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.04) !important;
}

.drop-zone-input {
  display: none;
}

.drop-zone-browse {
  text-decoration: underline;
}

.drop-zone-filename {
  color: #198754;
}

[data-bs-theme="dark"] .drop-zone {
  border-color: #495057;
}

[data-bs-theme="dark"] .drop-zone:hover,
[data-bs-theme="dark"] .drop-zone--over {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.08);
}

[data-bs-theme="dark"] .drop-zone--selected {
  border-color: #198754;
  background-color: rgba(25, 135, 84, 0.08);
}

[data-bs-theme="dark"] .drop-zone-filename {
  color: #75b798;
}
