:root {
  color-scheme: dark;
}

body {
  background-color: #0D0B1A;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, rgba(13, 11, 26, 0) 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #D1D5DB;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.ui-card {
  background: #16122A;
  border: 1px solid #2A234A;
  border-radius: 14px;
}

.btn-primary {
  background: #7C3AED;
  color: #F3F4F6;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 20px rgba(124,58,237,0.25);
}

.btn-secondary {
  background: transparent;
  color: #C4B5FD;
  border: 1px solid #2A234A;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: #3B2E66;
}

.input, .select, .textarea {
  background: #0F0C1F;
  border: 1px solid #2A234A;
  border-radius: 12px;
  color: #D1D5DB;
  padding: 12px 14px;
  width: 100%;
  transition: all 0.2s ease;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.25);
}

.chip {
  background: #0F0C1F;
  border: 1px solid #2A234A;
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #9CA3AF;
  padding: .6rem .9rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.menu-item.active {
  background: #16122A;
  color: #F3F4F6;
  box-shadow: inset 0 0 0 1px #2A234A;
}

.menu-item:hover {
  color: #F3F4F6;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #2A234A, transparent);
}

.glass {
  background: rgba(22,18,42,.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(42,35,74,.6);
}

.progress-bar {
  height: 10px;
  background: #0F0C1F;
  border: 1px solid #2A234A;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg,#5B21B6,#7C3AED,#A78BFA);
  box-shadow: 0 0 20px rgba(124,58,237,.5) inset;
}

.badge {
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: .5rem;
  border: 1px solid #2A234A;
  background: #0F0C1F;
  color: #C4B5FD;
}

.table th, .table td {
  padding: .85rem;
  border-bottom: 1px solid #2A234A;
}

.tip {
  position: relative;
}

.tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  white-space: nowrap;
  background: #0F0C1F;
  border: 1px solid #2A234A;
  color: #C4B5FD;
  padding: .4rem .6rem;
  border-radius: .5rem;
  font-size: .75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* Flash messages */
.flash {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid;
}

.flash.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
  color: #10B981;
}

.flash.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #EF4444;
}

.flash.info {
  background: rgba(124, 58, 237, 0.1);
  border-color: #7C3AED;
  color: #A78BFA;
}
