/* ============================================
   APK Builder - Premium Dark Design
   Ultra-polished, vibrant, modern
   ============================================ */

/* Design Tokens */
:root {
  /* Masculine Gradient Colors - Electric Blue to Cyan */
  --primary-start: #0ea5e9;
  --primary-mid: #06b6d4;
  --primary-end: #14b8a6;
  --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
  --primary-glow: rgba(14, 165, 233, 0.6);

  /* Accent Colors */
  --accent-blue: #0ea5e9;
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-green: #10b981;
  --accent-orange: #fb923c;
  --accent-red: #ef4444;

  /* Dark Backgrounds */
  --bg-dark: #0a0a0f;
  --bg-darker: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-elevated: #242438;
  --bg-input: #16162a;

  /* Borders */
  --border-dark: #2a2a40;
  --border-light: #3a3a55;
  --border-accent: rgba(14, 165, 233, 0.3);

  /* Text */
  --text-primary: #f8f9fa;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dimmed: #64748b;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
  --shadow-glow-strong: 0 0 60px rgba(14, 165, 233, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0;
  position: relative;
  background: radial-gradient(ellipse at top, rgba(14, 165, 233, 0.15) 0%, var(--bg-dark) 50%);
  overflow: hidden;
}

/* Animated orbs */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.hero-section::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4), transparent 70%);
  top: -200px;
  right: -100px;
}

.hero-section::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Form Container */
.form-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.form-title {
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.form-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   Form Elements
   ============================================ */

.form-outline {
  position: relative;
  margin-bottom: var(--space-6);
}

.form-label {
  position: absolute;
  top: 0;
  left: var(--space-5);
  transform: translateY(-50%);
  background: var(--bg-card);
  padding: 0 var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s;
  z-index: 1;
}

.form-control {
  width: 100%;
  height: 60px;
  padding: 0 var(--space-5);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-control:hover {
  border-color: var(--accent-blue);
  background: var(--bg-elevated);
}

.form-control:focus {
  border-color: var(--accent-blue);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), var(--shadow-glow);
  transform: translateY(-1px);
}

.form-control:focus + .form-label {
  color: var(--accent-blue);
}

.form-control::placeholder {
  color: var(--text-dimmed);
}

/* Hide MDB notch */
.form-notch {
  display: none !important;
}

/* Select */
.form-select,
select.form-select {
  width: 100%;
  height: 60px;
  padding: 0 var(--space-5);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-5) center;
  padding-right: var(--space-12);
}

.form-select:hover,
select.form-select:hover {
  border-color: var(--accent-blue);
  background-color: var(--bg-elevated);
}

.form-select:focus,
select.form-select:focus {
  border-color: var(--accent-blue);
  background-color: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

select.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================
   Checkboxes - Perfect Design
   ============================================ */

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-6);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: var(--space-3);
  position: relative;
  overflow: hidden;
}

.form-check::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.form-check:hover::before {
  opacity: 1;
}

.form-check:hover {
  background: rgba(14, 165, 233, 0.03);
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-check-input:hover {
  border-color: var(--accent-blue);
  background: rgba(14, 165, 233, 0.1);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.form-check-input:checked {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.form-check-input:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(45deg);
  }
  50% {
    transform: scale(1.2) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(45deg);
  }
}

.form-check-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.form-check-label .small,
.form-check-label .text-muted {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

/* File Input */
.form-control[type="file"] {
  padding: var(--space-4) var(--space-5);
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control[type="file"]::file-selector-button {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  padding: var(--space-2) var(--space-5);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  margin-right: var(--space-4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* ============================================
   Buttons
   ============================================ */

.btn-success,
.btn-primary,
.btn.btn-success {
  width: 100%;
  height: 60px;
  background: var(--primary-gradient) !important;
  border: none !important;
  border-radius: var(--radius-xl) !important;
  color: white !important;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  position: relative;
  overflow: hidden;
  text-transform: none !important;
}

.btn-success::before,
.btn-primary::before,
.btn.btn-success::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-success:hover,
.btn-primary:hover,
.btn.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong), var(--shadow-lg);
}

.btn-success:hover::before,
.btn-primary:hover::before,
.btn.btn-success:hover::before {
  opacity: 1;
}

.btn-success:active,
.btn-primary:active,
.btn.btn-success:active {
  transform: translateY(-1px);
}

/* Secondary Button */
.btn-outline-primary {
  height: 56px;
  padding: 0 var(--space-6);
  background: var(--bg-input) !important;
  border: 2px solid var(--border-light) !important;
  border-radius: var(--radius-xl) !important;
  color: var(--text-primary) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--primary-gradient) !important;
  border-color: transparent !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-outline-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Link Button */
.btn-link,
.btn.btn-link {
  width: 100%;
  padding: var(--space-4);
  background: transparent;
  border: 2px dashed var(--border-light) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--accent-blue) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.btn-link:hover,
.btn.btn-link:hover {
  background: rgba(14, 165, 233, 0.05) !important;
  border-color: var(--accent-blue) !important;
  transform: translateY(-2px);
}

/* ============================================
   Advanced Options
   ============================================ */

#advancedOptionsContainer {
  margin-top: var(--space-5);
  padding: var(--space-6);
  background: rgba(30, 30, 50, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  animation: expandDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes expandDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
  }
}

.card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: none !important;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1) !important;
}

.card-body {
  padding: var(--space-6);
}

.card h6 {
  color: var(--text-primary);
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
}

/* ============================================
   Build History Section
   ============================================ */

#buildHistorySection {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  border-top: 1px solid var(--border-dark);
  position: relative;
}

#buildHistorySection h3 {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

/* Build Cards */
#buildHistoryList .card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

#buildHistoryList .card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent) !important;
  box-shadow: var(--shadow-glow), var(--shadow-lg) !important;
}

#buildHistoryList .card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
}

#buildHistoryList .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

#buildHistoryList .card-title i {
  color: var(--accent-blue);
}

#buildHistoryList .card-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
}

#buildHistoryList h6 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

#buildHistoryList .badge {
  font-size: 0.8125rem;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 1px solid transparent;
}

#buildHistoryList .bg-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2)) !important;
  color: var(--accent-cyan) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

#buildHistoryList .bg-secondary {
  background: var(--bg-elevated) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-dark) !important;
}

#buildHistoryList .bg-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2)) !important;
  color: var(--accent-green) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

#buildHistoryList .bg-warning {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 146, 60, 0.2)) !important;
  color: var(--accent-orange) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}

#buildHistoryList .d-flex.justify-content-between.align-items-center {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-dark);
}

#buildHistoryList .btn-sm {
  padding: var(--space-3) var(--space-5);
  background: var(--primary-gradient) !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  color: white !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

#buildHistoryList .btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.6), var(--shadow-md);
}

/* Pagination */
#buildHistoryPagination {
  margin-top: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

#pageInfo {
  padding: var(--space-4) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 140px;
  text-align: center;
}

/* Empty State */
#noBuildHistory {
  padding: var(--space-16) var(--space-8);
  text-align: center;
  background: var(--bg-card);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-xl);
}

#noBuildHistory i {
  color: var(--text-dimmed);
  margin-bottom: var(--space-5);
  opacity: 0.5;
}

#noBuildHistory p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Loading */
.spinner-border {
  color: var(--accent-blue) !important;
}

#buildHistoryLoading {
  text-align: center;
}

#buildHistoryLoading p {
  color: var(--text-muted);
  margin-top: var(--space-3);
}

/* ============================================
   Footer
   ============================================ */

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

hr {
  border: none;
  height: 1px;
  background: var(--border-dark);
  margin: var(--space-8) 0 !important;
  opacity: 1 !important;
}

/* ============================================
   Mobile Optimizations
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-10) 0;
    min-height: auto;
  }

  .form-container {
    padding: var(--space-5);
    margin: 0;
    border-radius: var(--radius-xl);
  }

  .form-header {
    margin-bottom: var(--space-6);
  }

  .form-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
  }

  .form-subtitle {
    font-size: 0.875rem;
  }

  .form-label {
    font-size: 0.75rem;
  }

  .form-outline {
    margin-bottom: var(--space-4);
  }

  .form-control,
  .form-select,
  select.form-select {
    height: 56px;
    font-size: 14px;
    padding: 0 var(--space-4);
  }

  .form-check {
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
    min-height: 48px;
  }

  .form-check-label {
    font-size: 0.875rem;
  }

  .form-check-label .small,
  .form-check-label .text-muted {
    font-size: 0.8125rem;
  }

  .form-check-input {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .btn-success,
  .btn-primary,
  .btn.btn-success {
    height: 56px;
    font-size: 0.9375rem;
  }

  .btn-outline-primary {
    height: 52px;
    font-size: 0.875rem;
  }

  .btn-link,
  .btn.btn-link {
    padding: var(--space-3);
    font-size: 0.875rem;
  }

  #buildHistorySection {
    padding: var(--space-10) 0;
  }

  #buildHistorySection h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
  }

  #buildHistoryList .card-body {
    padding: var(--space-5);
  }

  #buildHistoryList .card-title {
    font-size: 0.9375rem;
  }

  #buildHistoryList .card-text {
    font-size: 0.875rem;
  }

  #buildHistoryList h6 {
    margin-bottom: var(--space-2);
    font-size: 0.6875rem;
  }

  #buildHistoryList .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.75em;
  }

  #buildHistoryList .btn-sm {
    font-size: 0.875rem;
  }

  #pageInfo {
    font-size: 0.875rem;
  }

  #buildHistoryList .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding-top: var(--space-3);
  }

  #buildHistoryList .btn-sm {
    width: 100%;
    justify-content: center;
  }

  #buildHistoryPagination {
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
  }

  .btn-outline-primary {
    width: 100%;
  }

  #pageInfo {
    width: 100%;
    order: -1;
    padding: var(--space-3) var(--space-4);
  }

  #advancedOptionsContainer {
    padding: var(--space-4);
  }

  .card-body {
    padding: var(--space-4);
  }

  hr + div {
    font-size: 0.8125rem;
  }

  a {
    font-size: 0.8125rem;
  }
}

/* ============================================
   Desktop Optimizations
   ============================================ */

@media (min-width: 1024px) {
  .form-container {
    max-width: 1200px;
  }
}

@media (min-width: 1280px) {
  .form-container {
    max-width: 1400px;
  }

  #buildHistorySection .container {
    max-width: 1400px;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-muted {
  color: var(--text-muted) !important;
}

.text-danger {
  color: #ef4444 !important;
}

.small {
  font-size: 0.875rem;
}

.fw-bold {
  font-weight: 700;
}

.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-4) !important; }
.mb-4 { margin-bottom: var(--space-5) !important; }
.mb-5 { margin-bottom: var(--space-6) !important; }

/* ============================================
   Sweet Alert Dark Theme
   ============================================ */

.swal2-popup {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-dark) !important;
}

.swal2-title {
  color: var(--text-primary) !important;
}

.swal2-html-container {
  color: var(--text-secondary) !important;
}

.swal2-confirm {
  background: var(--primary-gradient) !important;
  box-shadow: var(--shadow-glow) !important;
}

.swal2-cancel {
  background: var(--bg-input) !important;
  border: 2px solid var(--border-light) !important;
  color: var(--text-primary) !important;
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Crop Selection */
.crop-selection .border {
  border-color: var(--accent-blue) !important;
}