/* app/static/style.css */

:root {
  --bg: #0f1115;
  --panel: #1f2937;
  --panel2: #111827;
  --text: #e6e6e6;
  --muted: #9aa7b5;
  --primary: #2563eb;
  --danger: #dc2626;
  --gray: #374151;
}
* { box-sizing: border-box; }
body { font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0; background: var(--bg); color: var(--text); }
header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: var(--panel2); position: sticky; top: 0; z-index: 10; }
header img { height: 48px; }
a { color: #93c5fd; text-decoration: none; }
.container { max-width: 1100px; margin: 1rem auto; padding: 0 1rem; }
.card { background: var(--panel); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: 0 10px 20px #0006; margin-bottom: 1rem; border: 1px solid #263244; display: flex; flex-direction: column; }
.btn { background: var(--primary); border: none; color: #fff; padding: .55rem .9rem; border-radius: 10px; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; }
.btn.red { background: var(--danger); }
.btn.gray { background: var(--gray); }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
label { display: block; margin: .25rem 0; font-size: .9rem; color: #cbd5e1; }
input, textarea, select { width: 100%; padding: .55rem .7rem; border-radius: 10px; border: 1px solid #374151; background: #0b1220; color: #e5e7eb; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid #2b3544; }
.flash { padding: .6rem .8rem; border-radius: 10px; margin-bottom: 1rem; }
.success { background: #14532d; color: #d1fae5; }
.danger { background: #7f1d1d; color: #fee2e2; }
.info { background: #1e3a8a; color: #dbeafe; }
nav { margin-left: auto; }
nav a { margin-right: 1rem; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--text); }
.table-scroll { display: block; overflow: auto; white-space: nowrap; }

/* HELFER-KLASSEN */
.d-flex { display: flex; gap: .5rem; align-items: center; }
.w-100 { width: 100%; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.font-sm { font-size: .9rem; }
.font-xl { font-size: 2.5rem; margin: 0.5rem 0; font-weight: bold; }

/* LOGIN-SEITE */
.auth-wrap { max-width: 420px; margin: 8vh auto 0; }
.brand { display: flex; align-items: center; gap: .75rem; justify-content: center; margin-bottom: 1.25rem; }
.brand img { height: 54px; }
.card.auth { padding: 1.25rem 1.5rem 1.5rem; background: linear-gradient(180deg, #1f2937, #111827); border: 1px solid #243044; }
.card.auth h3 { margin-top: 0; }

/* DASHBOARD-SEITE */
.dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.dashboard-grid .btn { margin-top: auto; }

@media (max-width:900px) {
  .grid.cols-2 { grid-template-columns: 1fr; }
  .container { max-width: 700px; }
}