/* ============================================================
   BASE.CSS – Reset, Variablen, Typografie, Buttons
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:         #E85D04;
  --primary-dark:    #c94e00;
  --primary-light:   #ff7a2e;
  --secondary:       #1B1B2F;
  --accent:          #FFB703;
  --text-dark:       #1a1a2e;
  --text-body:       #4a4a6a;
  --text-muted:      #8888aa;
  --bg-light:        #f5f6fa;
  --bg-white:        #ffffff;
  --border:          #e2e4ef;
  --radius:          10px;
  --radius-lg:       16px;
  --shadow-sm:       0 1px 4px rgba(0,0,0,.07);
  --shadow-md:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:       0 8px 32px rgba(0,0,0,.13);
  --header-h:        64px;
  --font:            'Outfit', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

img, svg { max-width: 100%; height: auto; display: block; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,93,4,.35);
}

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

.btn-outline-secondary {
  color: var(--text-body);
  border-color: var(--border);
}
.btn-outline-secondary:hover {
  background: var(--bg-light);
  border-color: var(--border);
  color: var(--text-dark);
}

/* ── Forms ─────────────────────────────────────────────── */
.form-control, .form-select {
  font-family: var(--font);
  border-color: var(--border);
  border-radius: var(--radius);
  padding: .55rem .85rem;
  font-size: .95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,.15);
  outline: none;
}
.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
  margin-bottom: .35rem;
}

/* ── Utilities ─────────────────────────────────────────── */
.text-primary  { color: var(--primary)   !important; }
.bg-primary    { background: var(--primary) !important; }
.text-muted    { color: var(--text-muted) !important; }
.shadow-sm     { box-shadow: var(--shadow-sm) !important; }
.shadow-md     { box-shadow: var(--shadow-md) !important; }
.rounded-custom { border-radius: var(--radius); }

/* Status Badges */
.badge-new        { background:#e0f0ff; color:#1565c0; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }
.badge-processing { background:#fff8e1; color:#e65100; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }
.badge-sent       { background:#e8f5e9; color:#2e7d32; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }
.badge-quoted     { background:#e0f2fe; color:#075985; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }
.badge-ordered    { background:#f3e8ff; color:#6b21a8; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }
.badge-completed  { background:#dcfce7; color:#166534; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }
.badge-done       { background:#eeeeee; color:#424242; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }
.badge-cancelled  { background:#ffebee; color:#c62828; padding:.25em .7em; border-radius:999px; font-size:.8em; font-weight:600; }

/* Flash Messages */
.flash-container { position:fixed; top:calc(var(--header-h) + .75rem); right:1rem; z-index:9999; display:flex; flex-direction:column; gap:.5rem; max-width:360px; }
.flash-message   { display:flex; align-items:center; gap:.6rem; padding:.75rem 1rem; border-radius:var(--radius); box-shadow:var(--shadow-md); font-size:.9rem; font-weight:500; animation:slideIn .2s ease; }
@keyframes slideIn { from{transform:translateX(110%);opacity:0} to{transform:none;opacity:1} }
.flash-success { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.flash-error   { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.flash-info    { background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }
