/* Auftragsradar — Custom styles beyond Tailwind */

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,31,44,0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,31,44,0.22); }

/* Glass-card look */
.card-glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26,31,44,0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 4px 24px -8px rgba(10,14,20,0.05);
}

/* Crispy elevated card */
.card-elev {
  background: #ffffff;
  border: 1px solid rgba(26,31,44,0.06);
  border-radius: 18px;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.02),
    0 6px 28px -10px rgba(10,14,20,0.07);
}

.card-dark {
  background: #0a0e14;
  color: #fff;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.card-dark::before {
  content:'';
  position: absolute; inset:0;
  background: radial-gradient(circle at 100% 0%, rgba(184,134,91,0.18), transparent 50%);
  pointer-events:none;
}

/* Subtle data-table refinement */
table.data { width: 100%; border-collapse: separate; border-spacing: 0; }
table.data th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(26,31,44,0.5); font-weight: 600;
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid rgba(26,31,44,0.06);
  background: #faf7f2;
}
table.data td {
  padding: 14px; border-bottom: 1px solid rgba(26,31,44,0.04);
  font-size: 14px;
}
table.data tbody tr { transition: background-color 0.12s ease; }
table.data tbody tr:hover { background-color: rgba(26,31,44,0.025); }

/* Badge variants */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
.badge-success { background: #ecfdf5; color: #047857; border-color: rgba(4,120,87,0.15); }
.badge-warn    { background: #fffbeb; color: #b45309; border-color: rgba(180,83,9,0.15); }
.badge-danger  { background: #fef2f2; color: #b91c1c; border-color: rgba(185,28,28,0.15); }
.badge-info    { background: #eff6ff; color: #1d4ed8; border-color: rgba(29,78,216,0.15); }
.badge-muted   { background: rgba(26,31,44,0.05); color: rgba(26,31,44,0.6); }
.badge-accent  { background: rgba(184,134,91,0.1); color: #8d6740; border-color: rgba(184,134,91,0.25); }

/* Score pill with subtle color ramp */
.score-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
}
.score-10 { background: linear-gradient(135deg,#1a1f2c,#3b4252); color: #d4a574; }
.score-9  { background: rgba(184,134,91,0.15); color: #8d6740; }
.score-8  { background: rgba(184,134,91,0.1);  color: #8d6740; }
.score-7  { background: rgba(26,31,44,0.06);   color: #1a1f2c; }
.score-6  { background: rgba(26,31,44,0.04);   color: rgba(26,31,44,0.7); }
.score-5  { background: rgba(26,31,44,0.04);   color: rgba(26,31,44,0.55); }
.score-low{ background: rgba(26,31,44,0.03);   color: rgba(26,31,44,0.4); }

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, #f3eee5 0%, #fff 40%, #f3eee5 80%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 8px;
}

/* Page header animation */
.page-enter > * { opacity: 0; animation: slideUp .4s ease-out forwards; }
.page-enter > *:nth-child(1) { animation-delay: .02s; }
.page-enter > *:nth-child(2) { animation-delay: .08s; }
.page-enter > *:nth-child(3) { animation-delay: .14s; }
.page-enter > *:nth-child(4) { animation-delay: .2s; }
.page-enter > *:nth-child(5) { animation-delay: .26s; }
.page-enter > *:nth-child(6) { animation-delay: .32s; }

/* Sparkle accent for headlines */
.headline-accent {
  font-style: italic;
  color: #b8865b;
  font-weight: 500;
}

/* HTMX loading indicator */
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }
