:root {
  --primary: #4361ee;
  --success: #06d6a0;
  --danger: #ef476f;
  --dark: #121212;
  --light: #f8f9fa;
  --gray: #6c757d;
  --border-radius: 1rem;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --light: #1e1e1e;
  --dark: #f8f9fa;
  --gray: #adb5bd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #333;
  transition: var(--transition);
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
  color: #e0e0e0;
}

.container { max-width: 1200px; padding: 1rem; }

.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: none;
}

[data-theme="dark"] .card { background: #252525; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.card:hover { transform: translateY(-5px); }

.btn { border-radius: 0.5rem; font-weight: 600; padding: 0.75rem 1.5rem; transition: var(--transition); }
.btn-primary { background: var(--primary); border: none; }
.btn-primary:hover { background: #3a56d4; transform: translateY(-2px); }

.form-control { border-radius: 0.5rem; padding: 0.75rem 1rem; border: 1px solid #ddd; }
[data-theme="dark"] .form-control { background: #333; border-color: #444; color: #fff; }

.upload-area {
  border: 3px dashed #ccc;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: #f9f9f9;
}

[data-theme="dark"] .upload-area { border-color: #444; background: #2a2a2a; }
.upload-area.dragover { border-color: var(--primary); background: rgba(67, 97, 238, 0.1); }

.example-img { height: 120px; object-fit: cover; border-radius: 0.75rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.progress { height: 8px; border-radius: 4px; overflow: hidden; margin-top: 1rem; }
.progress-bar { background: var(--success); }

.alert { border-radius: 0.75rem; padding: 1rem; margin-top: 1rem; border: none; }

.table { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); }
[data-theme="dark"] .table { background: #252525; }
.table th { background: var(--primary); color: white; font-weight: 600; }

.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] .navbar { background: rgba(18,18,18,0.95); }

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .container { padding: 0.5rem; }
  .example-img { height: 90px; }
  h2 { font-size: 1.5rem; }
}