/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f1f5f9; /* Светлый Slate фон */
  color: #334155;            /* Темный текст для читаемости */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === Header === */
.header {
  text-align: center;
  margin-bottom: 8px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.logo-accent {
  color: #64748b;
}

.tagline {
  margin-top: 6px;
  font-size: 0.875rem;
  color: #64748b;
}

/* === Card === */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
}

/* === Mode Selector === */
.mode-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.mode-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.2s;
  background: #f8fafc;
}

.mode-option:has(input:checked) {
  border-color: #334155;
  background: #e2e8f0;
  font-weight: 500;
}

/* === Drop Zone === */
.dropzone {
  border: 2px dashed #cbd5e1;
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: #64748b;
  background-color: #f1f5f9;
}

.dropzone-icon { color: #94a3b8; }
.dropzone:hover .dropzone-icon { color: #334155; }

.dropzone-text { font-size: 0.9375rem; font-weight: 500; color: #1e293b; }
.dropzone-subtext { font-size: 0.8125rem; color: #94a3b8; }
.dropzone-hint { font-size: 0.75rem; color: #64748b; margin-top: 4px; }

/* === File Info === */
.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #334155;
}

.btn-clear { background: none; border: none; cursor: pointer; color: #94a3b8; }
.btn-clear:hover { color: #1e293b; }

/* === Buttons === */
.btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover:not(:disabled) { background-color: #334155; }
.btn-primary:disabled { background-color: #cbd5e1; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  padding: 8px 18px;
  background-color: #e2e8f0;
  color: #334155;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
}

/* === Info Panel & Logs === */
.info-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 24px; }
.info-title, .log-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #64748b; margin-bottom: 12px; }
.info-item { font-size: 0.875rem; color: #334155; }

.log-panel { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 24px; }
.log-item { font-size: 0.8125rem; background: #f1f5f9; padding: 6px 10px; border-radius: 6px; }

/* === Utility === */
.hidden { display: none !important; }
.disclaimer { font-size: 0.8125rem; color: #64748b; }