* {
  box-sizing: border-box;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0a0a14;
  color: #f0f0f5;
}

/* Cards */
.card {
  background: linear-gradient(135deg, #141428 0%, #1a1a30 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.card-sm {
  background: linear-gradient(135deg, #141428 0%, #1a1a30 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

/* XP bar */
.xp-bar {
  background: linear-gradient(90deg, #e94560, #8b5cf6, #6c8aec);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(233, 69, 96, 0.4), 0 0 32px rgba(139, 92, 246, 0.2);
  animation: xp-pulse 3s ease-in-out infinite;
}

@keyframes xp-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(233, 69, 96, 0.4), 0 0 32px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 24px rgba(233, 69, 96, 0.6), 0 0 48px rgba(139, 92, 246, 0.35); }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #f0f0f5;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Inputs */
.input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #f0f0f5;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  outline: none;
  width: 100%;
}

.input:focus {
  border-color: rgba(108, 138, 236, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 138, 236, 0.1);
}

/* Text colors */
.text-secondary {
  color: rgba(255, 255, 255, 0.45);
}

.text-accent {
  color: #e94560;
}

.text-blue {
  color: #6c8aec;
}

.text-green {
  color: #34d399;
}

/* Badge */
.badge {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Steps bars */
.step-bar {
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
  transition: height 0.5s ease;
}

/* Level badge in header */
.level-badge {
  background: linear-gradient(135deg, #e94560 0%, #c73b52 100%);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(233, 69, 96, 0.4);
}

/* Header */
.header {
  background: linear-gradient(180deg, rgba(20, 20, 40, 0.8) 0%, rgba(10, 10, 20, 0) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Task card completed */
.task-done {
  opacity: 0.4;
  filter: saturate(0.5);
}

/* Circular timer */
.timer-circle {
  filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.3));
}

.timer-circle-done {
  filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.3));
}

/* Config items */
.config-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px 16px;
  transition: background 0.2s ease;
}

.config-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Drag and drop */
.sortable-ghost {
  opacity: 0.3;
}

.sortable-chosen {
  box-shadow: 0 8px 32px rgba(108, 138, 236, 0.3);
}

.drag-handle {
  cursor: grab;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
}

.drag-handle:hover {
  color: rgba(255, 255, 255, 0.5);
}
