[data-bs-theme="light"] {
  --custom-bg-primary: #f8f9fa;
  --custom-border: #dee2e6;
  --custom-shadow: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] {
  --custom-bg-primary: #212529;
  --custom-border: #495057;
  --custom-shadow: rgba(255, 255, 255, 0.05);
}

.hidden {
      display: none;
    }

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

footer a {
  color: #667eea;
  text-decoration: none;
}

:root {
  --bg: #0f1724;
  --accent: #7c3aed;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
  margin: 0;
}

.main {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.wrap {
  width: 100%;
  max-width: 980px;
}

.card {
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
}

.btn {
  background: var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.drop {
  border: 2px dashed var(--bs-border-color);;
  padding: 26px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: 0.2s;
  text-align: center;
  background-color: var(--bs-body-bg);
}

.drop.dragover {
  border-color: var(--bs-primary);
  background-color: var(--bs-primary-bg-subtle);
}

.files {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow: auto;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--custom-border);
  background-color: var(--custom-bg-primary);
  font-size: 13px;
  cursor: grab;
  transition: all 0.2s ease;
}

.file-row.dragging {
  opacity: 0.5;
}

.file-row:hover {
  box-shadow: 0 2px 8px var(--custom-shadow);
}

.loader {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.loader.active {
  display: flex;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bs-border-color);
  border-top-color: var(--bs-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid #667eea;
}

.feature-card h4 {
  color: #667eea;
  margin-bottom: 0.5rem;
}