/* Vincura Depot - App-weite Styles */

body { font-family: 'Inter', sans-serif; background: #f1f5f9; color: #1e293b; }

.depot-main { max-width: 1280px; }

/* Topbar */
.depot-navbar { background: #0f172a; min-height: 56px; }
.depot-brand { color: #f8fafc; }
.depot-brand-name { font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; }
.depot-brand-icon { font-size: 1.2rem; color: #60a5fa; }

.nav-link-custom {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s;
  cursor: pointer;
}
.nav-link-custom:hover, .nav-link-custom.active { color: #f8fafc; background: rgba(255,255,255,0.08); }
.nav-link-custom.nav-disabled {
  color: #475569;
  cursor: not-allowed;
  opacity: 0.55;
}
.nav-link-custom.nav-disabled:hover { background: transparent; color: #475569; }
.nav-link-custom.nav-user { cursor: default; color: #cbd5e1; }
.nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.15); margin: 0 0.25rem; }

.navbar-toggler-custom {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #94a3b8;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}
.navbar-toggler-custom:hover { color: #f8fafc; background: rgba(255,255,255,0.08); }

@media (max-width: 767.98px) {
  .nav-collapse { display: none; flex-direction: column; width: 100%; gap: 2px; padding-top: 0.5rem; }
  .nav-collapse.show { display: flex; }
}
@media (min-width: 768px) {
  .nav-collapse { display: flex !important; }
  .navbar-toggler-custom { display: none; }
}

/* Page heading */
.page-heading { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

/* KPI cards */
.kpi-card { border: 0; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.kpi-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; }

/* Buttons */
.depot-btn-primary { background: #0f172a; color: #f8fafc; border: 1px solid #0f172a; }
.depot-btn-primary:hover, .depot-btn-primary:focus { background: #1e293b; color: #f8fafc; }
.btn-action { font-size: 0.85rem; }

/* Tables */
.depot-table { font-size: 0.88rem; }
.depot-table tbody tr:hover { background: #f0f4ff; transition: background 0.15s; }
.depot-table tbody tr:nth-child(even) { background: #f8fafc; }
.depot-table tbody tr:nth-child(even):hover { background: #f0f4ff; }
.clickable-row { cursor: pointer; }
.sortable-th { user-select: none; white-space: nowrap; }
.sortable-th a { color: inherit; }
.sortable-th:hover { color: #1e293b !important; }
.sort-indicator { font-size: 0.7rem; margin-left: 3px; vertical-align: middle; color: #2563eb; }

/* Key-Value table (fund detail) */
.depot-kv th { width: 40%; font-weight: 500; color: #475569; background: #f8fafc; }
.depot-kv td { font-weight: 500; }

/* Stars */
.depot-stars { color: #f59e0b; letter-spacing: 1px; }

/* Ampel */
.text-success-strong { color: #15803d; font-weight: 600; }
.text-warning-strong { color: #ca8a04; font-weight: 600; }
.text-danger-strong { color: #b91c1c; font-weight: 600; }

/* Login */
.login-box { width: 100%; max-width: 380px; padding: 1rem; }
.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #0f172a;
  border-radius: 12px;
  color: #60a5fa;
  font-size: 1.6rem;
}

/* Toasts */
.toast-alert { animation: toast-fade-in 0.3s ease; }
.toast-alert.toast-hiding { animation: toast-fade-out 0.4s ease forwards; }
@keyframes toast-fade-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-fade-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-8px); } }

/* HTMX */
.htmx-request.htmx-request { opacity: 0.7; pointer-events: none; }

/* Review inline-edit */
.depot-editable {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px dashed transparent;
  display: inline-block;
  min-width: 40px;
}
.depot-editable:hover, .depot-editable:focus { border-color: #cbd5e1; background: #f8fafc; outline: none; }
.depot-editable-saved { background: #dcfce7; transition: background 1.2s ease; }
.depot-review td { vertical-align: middle; }

/* Settings */
.depot-thresholds { min-height: 240px; }
