:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1a243d;
  --bg-input: #1e293b;
  --border: #24324f;
  --border-focus: #3b82f6;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem 1.25rem;
  width: 100%;
}

/* Header & Nav */
header.app-header {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  min-height: 46px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background-color: rgba(59, 130, 246, 0.15);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 110;
  justify-content: space-around;
  padding: 0.35rem 0.5rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  min-height: 48px;
  min-width: 48px;
  flex: 1;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

.mobile-nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
  box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.45);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-val {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.kpi-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Actions Bar */
.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Buttons (min-height 46px) */
.btn {
  min-height: 46px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #3b82f6;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  min-height: 38px;
  padding: 0 0.75rem;
  font-size: 0.85rem;
}

/* Card & Table */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

table.data-table th {
  background: rgba(30, 41, 59, 0.7);
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

table.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-clean {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-listed {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-muted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

/* Form Elements (min 46px) */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
}

textarea.form-control {
  min-height: 80px;
}

/* Alert Notification */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-danger {
  background: var(--danger-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  color: var(--text-main);
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Spinner */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-container {
    padding-bottom: 6rem;
  }
}

/* Pagination (Dark UI & Mobile-First) */
.sbom-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sbom-pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sbom-pagination-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sbom-page-link {
  min-height: 40px;
  min-width: 40px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

a.sbom-page-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: #fff;
}

.sbom-pagination-list li.active .sbom-page-link {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.sbom-pagination-list li.disabled .sbom-page-link {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Schutzregel gegen unskalierte SVGs in Tabellen oder Drittkomponenten */
nav[role="navigation"] svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Live-Scan & Lade-Overlay (Sanduhr / Fortschrittsanzeige)
   ========================================================================== */
.scan-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
}

.scan-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.2s ease-out;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scan-overlay-card {
  background: linear-gradient(180deg, #162038 0%, #0f172a 100%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(59, 130, 246, 0.18);
  animation: modalIn 0.25s ease-out;
}

.scan-spinner-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.35rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(59, 130, 246, 0.15);
  border-top-color: #3b82f6;
  border-right-color: #60a5fa;
  animation: spin 1.1s linear infinite;
}

.scan-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.12);
  border-bottom-color: #10b981;
  border-left-color: #34d399;
  animation: spinReverse 1.6s linear infinite;
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.scan-hourglass {
  font-size: 1.9rem;
  line-height: 1;
  display: inline-block;
  animation: hourglassFlip 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

@keyframes hourglassFlip {
  0%, 40% { transform: rotate(0deg) scale(1); }
  50%, 90% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

.scan-overlay-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.scan-overlay-step {
  font-size: 0.9rem;
  color: #94a3b8;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.scan-progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.15rem;
  position: relative;
}

.scan-progress-bar-fill {
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #10b981);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  animation: progressIndeterminate 1.6s ease-in-out infinite;
}

@keyframes progressIndeterminate {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(250%); }
}

.scan-overlay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scan-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  text-align: left;
}

.scan-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 1.4s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.scan-timer {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ==============================================================================
   🤖 AI SECURITY COPILOT MODAL-OVERLAY & CHATBOT STYLES
   ============================================================================== */
.ai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(8px);
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.ai-modal-card {
  background: #111827;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 18px;
  width: 100%;
  max-width: 1180px;
  height: 88vh;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 45px rgba(59, 130, 246, 0.22);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-modal-overlay.active .ai-modal-card {
  transform: scale(1) translateY(0);
}

.ai-modal-header {
  padding: 1.15rem 1.45rem;
  background: rgba(17, 24, 39, 0.98);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.ai-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.85rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.ai-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ai-modal-footer {
  padding: 0.85rem 1.25rem;
  background: rgba(17, 24, 39, 0.98);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .ai-modal-overlay {
    padding: 0.5rem;
  }
  .ai-modal-card {
    height: 94vh;
    max-height: 96vh;
    border-radius: 12px;
  }
}

.ai-avatar-pulse {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.4));
  border: 1px solid rgba(147, 197, 253, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  position: relative;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

.ai-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.ai-drawer-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ai-context-bar {
  padding: 0.65rem 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  font-size: 0.78rem;
}

.ai-context-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.ai-ctx-label {
  color: var(--text-muted);
}

.ai-ctx-val {
  font-family: monospace;
}

.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scroll-behavior: smooth;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 98%;
  animation: msgFadeIn 0.2s ease-out;
}

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

.ai-msg-bot {
  align-self: flex-start;
  width: 100%;
}

.ai-msg-user {
  align-self: flex-end;
}

.ai-bubble {
  padding: 1.15rem 1.45rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.68;
}

.ai-msg-bot .ai-bubble {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ai-msg-bot .ai-bubble p {
  margin: 0 0 0.85rem 0;
}

.ai-msg-bot .ai-bubble p:last-child {
  margin-bottom: 0;
}

.ai-msg-bot .ai-bubble ul, .ai-msg-bot .ai-bubble ol {
  margin: 0.4rem 0 0.85rem 1.35rem;
  padding: 0;
}

.ai-msg-bot .ai-bubble li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.ai-msg-bot .ai-bubble h3, .ai-msg-bot .ai-bubble h4 {
  margin: 1.1rem 0 0.45rem 0;
  font-weight: 700;
  color: #fff;
}

.ai-msg-user .ai-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.ai-action-card {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
}

.ai-action-card-header {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-code-block {
  background: #0b0f19;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-family: monospace;
  font-size: 0.82rem;
  color: #38bdf8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.45rem 0;
  word-break: break-all;
}

.ai-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.ai-copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.ai-quick-chips {
  padding: 0.5rem 1rem;
  background: rgba(17, 24, 39, 0.85);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ai-quick-chips::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #cbd5e1;
  font-size: 0.76rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ai-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.ai-drawer-footer {
  padding: 0.85rem 1.15rem;
  background: rgba(17, 24, 39, 0.95);
  border-top: 1px solid var(--border);
}

.ai-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.86rem;
  resize: none;
  max-height: 120px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ai-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.ai-send-button {
  min-height: 40px;
  height: 40px;
  width: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Klickbare Status-Badges für AI Copilot */
.badge-clickable-ai {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-clickable-ai:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  border-color: #60a5fa !important;
}

/* Typing Indicator */
.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-typing-indicator span {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.ai-typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}
