@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

html { line-height: 1.5; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: #e2e8f0;
  background-color: #060a14;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 600; margin: 0; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font-family: inherit; font-size: 100%; margin: 0; padding: 0; }
button, [type='button'], [type='submit'] { cursor: pointer; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
img, svg { display: block; vertical-align: middle; }

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.min-w-0 { min-width: 0; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-64 { width: 16rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-full { height: 100%; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }
.col-span-3 { grid-column: span 3; }
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex { display: flex; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.bottom-6 { bottom: 1.5rem; }
.left-0 { left: 0; }
.left-1\/4 { left: 25%; }
.right-1\/4 { right: 25%; }
.left-3 { left: 0.75rem; }
.left-1\/2 { left: 50%; }
.-z-10 { z-index: -10; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pl-10 { padding-left: 2.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.font-display { font-family: 'Outfit', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Colors */
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-emerald-400 { color: #34d399; }
.text-cyan-400 { color: #22d3ee; }
.text-violet-400 { color: #a78bfa; }
.text-amber-400 { color: #fbbf24; }
.text-red-400 { color: #f87171; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-800\/20 { background-color: rgba(30, 41, 59, 0.2); }
.bg-slate-800\/30 { background-color: rgba(30, 41, 59, 0.3); }
.bg-slate-800\/50 { background-color: rgba(30, 41, 59, 0.5); }
.bg-slate-900 { background-color: #0f172a; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-cyan-500 { background-color: #06b6d4; }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.bg-violet-500 { background-color: #8b5cf6; }
.bg-violet-500\/10 { background-color: rgba(139, 92, 246, 0.1); }
.bg-violet-500\/20 { background-color: rgba(139, 92, 246, 0.2); }
.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.bg-red-500 { background-color: #ef4444; }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }

/* Gradients */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-slate-950 { --tw-gradient-from: #020617; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-slate-900 { --tw-gradient-from: #0f172a; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-slate-400 { --tw-gradient-from: #94a3b8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-emerald-400 { --tw-gradient-from: #34d399; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-cyan-400 { --tw-gradient-from: #22d3ee; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-violet-400 { --tw-gradient-from: #a78bfa; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-amber-400 { --tw-gradient-from: #fbbf24; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-slate-950 { --tw-gradient-to: #020617; }
.to-slate-500 { --tw-gradient-to: #64748b; }
.to-emerald-600 { --tw-gradient-to: #059669; }
.to-blue-500 { --tw-gradient-to: #3b82f6; }
.to-blue-600 { --tw-gradient-to: #2563eb; }
.to-purple-600 { --tw-gradient-to: #9333ea; }
.to-orange-500 { --tw-gradient-to: #f97316; }
.to-green-500 { --tw-gradient-to: #22c55e; }
.via-slate-900 { --tw-gradient-via: #0f172a; --tw-gradient-stops: var(--tw-gradient-from), #0f172a, var(--tw-gradient-to); }

/* Borders */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-slate-700 { border-color: #334155; }
.border-slate-700\/30 { border-color: rgba(51, 65, 85, 0.3); }
.border-slate-700\/50 { border-color: rgba(51, 65, 85, 0.5); }
.border-slate-800 { border-color: #1e293b; }
.border-slate-800\/30 { border-color: rgba(30, 41, 59, 0.3); }
.border-slate-800\/50 { border-color: rgba(30, 41, 59, 0.5); }
.border-emerald-500 { border-color: #10b981; }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-violet-500\/30 { border-color: rgba(139, 92, 246, 0.3); }
.border-amber-500 { border-color: #f59e0b; }
.border-amber-500\/30 { border-color: rgba(245, 158, 11, 0.3); }
.border-red-500 { border-color: #ef4444; }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-emerald-500\/20 { --tw-shadow-color: rgba(16, 185, 129, 0.2); box-shadow: 0 10px 15px -3px var(--tw-shadow-color); }
.shadow-emerald-500\/30 { --tw-shadow-color: rgba(16, 185, 129, 0.3); box-shadow: 0 10px 15px -3px var(--tw-shadow-color); }
.shadow-emerald-500\/50 { --tw-shadow-color: rgba(16, 185, 129, 0.5); }
.shadow-cyan-500\/30 { --tw-shadow-color: rgba(6, 182, 212, 0.3); box-shadow: 0 10px 15px -3px var(--tw-shadow-color); }
.shadow-cyan-500\/50 { --tw-shadow-color: rgba(6, 182, 212, 0.5); }
.shadow-violet-500\/30 { --tw-shadow-color: rgba(139, 92, 246, 0.3); box-shadow: 0 10px 15px -3px var(--tw-shadow-color); }
.shadow-violet-500\/50 { --tw-shadow-color: rgba(139, 92, 246, 0.5); }
.shadow-amber-500\/20 { --tw-shadow-color: rgba(245, 158, 11, 0.2); box-shadow: 0 10px 15px -3px var(--tw-shadow-color); }
.shadow-amber-500\/30 { --tw-shadow-color: rgba(245, 158, 11, 0.3); box-shadow: 0 10px 15px -3px var(--tw-shadow-color); }
.shadow-amber-500\/50 { --tw-shadow-color: rgba(245, 158, 11, 0.5); }
.shadow-red-500\/20 { --tw-shadow-color: rgba(239, 68, 68, 0.2); box-shadow: 0 10px 15px -3px var(--tw-shadow-color); }
.opacity-0 { opacity: 0; }
.opacity-20 { opacity: 0.2; }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.blur-3xl { filter: blur(64px); }

/* Overflow & Display */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.cursor-pointer { cursor: pointer; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:shadow-emerald-500\/50 { box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5); }
.group:hover .group-hover\:shadow-cyan-500\/50 { box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.5); }
.group:hover .group-hover\:shadow-violet-500\/50 { box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.5); }
.group:hover .group-hover\:shadow-amber-500\/50 { box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.5); }

/* Transitions */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Hover */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-emerald-400:hover { color: #34d399; }
.hover\:text-cyan-400:hover { color: #22d3ee; }
.hover\:text-violet-400:hover { color: #a78bfa; }
.hover\:text-amber-400:hover { color: #fbbf24; }
.hover\:text-red-400:hover { color: #f87171; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:bg-slate-800\/20:hover { background-color: rgba(30, 41, 59, 0.2); }
.hover\:bg-slate-800\/30:hover { background-color: rgba(30, 41, 59, 0.3); }
.hover\:bg-red-500\/10:hover { background-color: rgba(239, 68, 68, 0.1); }
.hover\:bg-red-500\/20:hover { background-color: rgba(239, 68, 68, 0.2); }
.hover\:border-slate-700:hover { border-color: #334155; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }

/* Focus */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:border-emerald-500:focus { border-color: #10b981; }
.peer:checked ~ .peer-checked\:ring-2 { box-shadow: 0 0 0 2px #fff; }
.ring-white { --tw-ring-color: #fff; }
.ring-offset-2 { --tw-ring-offset-width: 2px; }
.ring-offset-slate-900 { --tw-ring-offset-color: #0f172a; }
.accent-cyan-500 { accent-color: #06b6d4; }
.appearance-none { appearance: none; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-fade-in { animation: fadeIn 0.4s ease-out both; }
.animate-slide-up { animation: slideUp 0.5s ease-out both; }
.animate-slide-in-right { animation: slideInRight 0.3s ease-out both; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Min height */
.min-h-\[80px\] { min-height: 80px; }
.min-h-\[calc\(100vh-180px\)\] { min-height: calc(100vh - 180px); }

/* ==================== CUSTOM COMPONENTS ==================== */

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #34d399 0%, #22d3ee 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Pills */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-pill:hover {
  background-color: rgba(51, 65, 85, 0.5);
  color: #f1f5f9;
}
.nav-pill-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

/* Module Cards (Home) */
.module-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease-out both;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.module-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.module-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(100, 116, 139, 0.5);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.1);
}
.module-card:hover::before {
  opacity: 1;
}
.module-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.module-card:hover .module-icon {
  transform: scale(1.1);
}
.module-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: #475569;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}
.module-card:hover .module-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #94a3b8;
}

/* Quick Stats */
.quick-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-radius: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.quick-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 30px currentColor;
}
.quick-stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card */
.card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card-hover {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card-hover:hover {
  border-color: rgba(100, 116, 139, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.05);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
  font-weight: 500;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(71, 85, 105, 0.5);
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #dc2626;
  color: white;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.btn-danger:hover {
  background: #ef4444;
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.75rem;
  color: #e2e8f0;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.input::placeholder { color: #64748b; }
.input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: rgba(15, 23, 42, 0.95);
}
.select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.75rem;
  color: #e2e8f0;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.select:focus {
  outline: none;
  border-color: #10b981;
  background-color: rgba(15, 23, 42, 0.95);
}
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

/* Badges */
.badge-success {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-warning {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-info {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Table */
.table { width: 100%; text-align: left; }
.table th {
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}
.table td {
  padding: 1rem 1.25rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.25);
}
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(59, 130, 246, 0.05); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay > .card {
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease-out;
}

.modal-overlay > .card.max-w-sm {
  max-width: 360px;
}

.modal-overlay > .card.max-w-lg {
  max-width: 420px;
}

.modal-overlay > .card.max-w-2xl {
  max-width: 540px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.modal-overlay .border-surface-800 {
  border-color: rgba(51, 65, 85, 0.4);
}

/* Legacy modal class */
.modal {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.4);
  max-width: 28rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease-out;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(59, 130, 246, 0.1);
}

/* ==================== KANBAN BOARD ==================== */
.kanban-board {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  min-height: 65vh;
  padding: 0.5rem;
}

.kanban-board > div:only-child {
  width: 100%;
}

@media (max-width: 900px) {
  .kanban-board {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
  }
  .kanban-column {
    min-height: 300px;
  }
}

.kanban-column {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(71, 85, 105, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.kanban-column:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.kanban-column-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

.kanban-column-header h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.kanban-count {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(4px);
}

.kanban-column-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.kanban-column-body::-webkit-scrollbar {
  width: 6px;
}

.kanban-column-body::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-column-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 3px;
}

.kanban-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 2px dashed rgba(71, 85, 105, 0.25);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.3);
  min-height: 120px;
}

.kanban-empty p {
  color: #475569;
  font-size: 0.875rem;
}

.kanban-card {
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.6) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(71, 85, 105, 0.35);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  cursor: default;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kanban-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(145deg, rgba(67, 83, 107, 0.7) 0%, rgba(40, 53, 75, 0.95) 100%);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.kanban-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  margin: 0.75rem 1rem 1rem;
  border-radius: 0.875rem;
  border: 2px dashed rgba(71, 85, 105, 0.3);
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  transition: all 0.25s;
}

.kanban-add-btn:hover {
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.02);
}

.kanban-add-btn svg {
  transition: transform 0.2s;
}

.kanban-add-btn:hover svg {
  transform: rotate(90deg);
}

/* Colores específicos por columna */
.kanban-column[data-column="planeado"] .kanban-column-header {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.4) 0%, rgba(71, 85, 105, 0.3) 100%);
}

.kanban-column[data-column="en_proceso"] .kanban-column-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.25) 100%);
}

.kanban-column[data-column="realizado"] .kanban-column-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.25) 100%);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Placeholder Kanban */
.kanban-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 50vh;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-radius: 1.5rem;
  border: 2px dashed rgba(71, 85, 105, 0.3);
}

.kanban-placeholder-icon {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(71, 85, 105, 0.3);
}
