.app-container {
  display: flex;
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #050816;
  color: #f9fafb;
}
.sidebar {
  width: 260px;
  padding: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, #111827, #020617);
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.6);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.btn-icon {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
}
.info-box {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.82rem;
  line-height: 1.4;
}
.info-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #e5e7eb;
}
.info-box ul {
  padding-left: 18px;
  margin: 0;
}

.main-content {
  flex: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-card {
  max-width: 640px;
  width: 100%;
  background: radial-gradient(
    circle at top left,
    #020617,
    #020617 40%,
    #0b1120
  );
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.upload-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.form-group {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #e5e7eb;
}
.form-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 0.9rem;
}
.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.6);
}
.buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
}
.btn-secondary:hover {
  background: rgba(55, 65, 81, 0.95);
}

.progress-container {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.82rem;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.progress-bar-outer {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.15s ease-out;
}
.progress-details {
  margin-top: 6px;
  color: #9ca3af;
}

.log-container {
  margin-top: 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 1);
  overflow: hidden;
}
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.85rem;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 1),
    rgba(30, 64, 175, 0.9)
  );
}
.log-body {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 12px;
  margin: 0;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.settings-panel {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(18px);
  z-index: 50;
}
.settings-panel.active {
  display: flex;
}
.settings-content {
  width: 380px;
  max-width: calc(100% - 32px);
  background: #020617;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.95);
}
.dialog-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-title {
  margin: 0;
  font-size: 1rem;
}
.dialog-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 18px;
}
.dialog-body {
  padding: 12px 14px 6px;
}
.dialog-footer {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.form-help {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid rgba(31, 41, 55, 1);
  }
  .main-content {
    padding: 16px;
  }
}
