:root {
  --primary: #4a6fa5;
  --secondary: #6c757d;
  --background: #ffffff;
  --text: #212529;
  --border: #dee2e6;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --card-bg: #f8f9fa;
  --drop-zone-bg: #e9ecef;
}

[data-theme="dark"] {
  --primary: #6c9bcf;
  --background: #121212;
  --text: #f8f9fa;
  --border: #495057;
  --card-bg: #1e1e1e;
  --drop-zone-bg: #2d2d2d;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

#theme-toggle {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  background-color: var(--drop-zone-bg);
  margin-bottom: 20px;
  transition: border-color 0.3s;
  position: relative;
}

.drop-zone.active {
  border-color: var(--primary);
  background-color: rgba(74, 111, 165, 0.1);
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 6px;
  border-left: 4px solid var(--primary);
}

.file-item .drag-handle {
  cursor: move;
  padding: 0 10px;
  font-size: 1.2rem;
}

.file-info {
  flex-grow: 1;
}

.file-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.file-meta {
  font-size: 0.85rem;
  color: var(--secondary);
}

.metadata-editor {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--background);
  color: var(--text);
}

.hidden {
  display: none;
}

.controls {
  text-align: center;
}

#btn-process {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 15px;
}

#btn-process:disabled {
  background: var(--secondary);
  cursor: not-allowed;
}

#progress-bar {
  width: 100%;
  height: 24px;
  margin-bottom: 10px;
}

#status {
  font-size: 0.9rem;
}

/* Description Box Styles */
.description-box {
  background: linear-gradient(135deg, var(--primary), #5a7bb8);
  color: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(74, 111, 165, 0.15);
}

.description-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.description-header .icon {
  font-size: 1.5rem;
}

.description-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.description-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.95;
}

.privacy-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.steps {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.step-number {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header {
    flex-direction: column;
    gap: 15px;
  }
  
  .drop-zone {
    padding: 30px 15px;
  }
  
  .description-box {
    padding: 20px;
  }
  
  .steps {
    flex-direction: column;
    gap: 12px;
  }
  
  .description-header h2 {
    font-size: 1.2rem;
  }
}
