* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 28px;
  color: #fff;
}

.subtitle {
  color: #888;
  margin-top: 4px;
}

.panels {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.panel {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #2a2a3e;
}

h2 {
  font-size: 16px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.drop-zone {
  border: 2px dashed #3a3a5e;
  border-radius: 8px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.05);
}

.drop-icon {
  font-size: 32px;
  color: #555;
  margin-bottom: 8px;
}

.drop-zone p {
  color: #777;
  font-size: 13px;
}

.file-list {
  margin-top: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #12122a;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 13px;
}

.file-item .remove {
  background: none;
  border: none;
  color: #ea4335;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #888;
}

.form-grid input {
  margin-top: 4px;
  padding: 8px 10px;
  background: #12122a;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity 0.2s;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn.primary {
  background: #4285f4;
  color: #fff;
}

.btn.primary:hover:not(:disabled) {
  background: #5a95f5;
}

.btn.success {
  background: #34a853;
  color: #fff;
}

.btn.success:hover {
  background: #45b964;
}

.preview-area {
  background: #12122a;
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-area svg {
  width: 100%;
  height: auto;
}

.placeholder {
  color: #444;
  font-size: 14px;
}

.status {
  margin-top: 12px;
  font-size: 13px;
  color: #aaa;
  min-height: 20px;
}

.status.error {
  color: #ea4335;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #444;
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

@media (max-width: 768px) {
  .panels {
    grid-template-columns: 1fr;
  }
}
