/* =========================================================
   2027 Apple-like Glass Theme (applies to existing classes)
   ========================================================= */
:root{
  --brand:#1a73e8;        /* primair */
  --brand-600:#155ab6;
  --bg-1:#0b1220;         /* achtergrond gradient 1 (diep blauw) */
  --bg-2:#121a2e;         /* achtergrond gradient 2 */
  --text:#f5f7fb;
  --muted:#a6b0c3;

  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;

  --radius:12px;
  --radius-lg:16px;

  --border-light:rgba(255,255,255,.22);     /* glass outline */
  --border-strong:rgba(255,255,255,.34);

  --shadow-sm:0 6px 20px rgba(2,6,23,.25);
  --shadow-md:0 10px 28px rgba(2,6,23,.3);
  --shadow-lg:0 18px 48px rgba(2,6,23,.38);
}

/* Base reset */
*,
*::before,
*::after{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Inter", Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(54,114,255,.28), transparent 55%),
    radial-gradient(1000px 900px at 110% 10%, rgba(0,204,255,.20), transparent 55%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{ color:#dbe8ff; text-decoration:none; }
a:hover{ text-decoration:underline; }

h1,h2,h3{ margin:0 0 .8rem 0; }
h2{ font-size:2rem; }
h3{ font-size:1.25rem; color:#d9e2f1; }

.container{
  max-width:1100px;
  margin:2rem auto;
  padding:1rem;
}

/* =========================================================
   GLASS MIXIN (used on multiple components)
   ========================================================= */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .glassize{
    background: rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    border:1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
}
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .glassize{
    background: rgba(19,28,53,.75);
    border:1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-sm);
  }
}

/* =========================================================
   Cards, Tables, Forms -> GLASS
   ========================================================= */
.card{
  border-radius:var(--radius-lg);
  padding:1.25rem 1.5rem;
  margin-bottom:1.25rem;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.card:hover{ transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.card{ /* make it glass */
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border:1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

/* Two-column layout you already use */
.columns{ display:flex; gap:20px; flex-wrap:wrap; }
.column{ flex:1 1 420px; min-width:320px; }

/* TABLES */
table{
  width:100%;
  border-collapse: separate;
  border-spacing:0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  margin:0 0 1.25rem 0;
  /* glass */
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border:1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color:var(--text);
}
th, td{ padding:14px 18px; text-align:left; }
th{
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  color:#f8fbff;
  letter-spacing:.4px;
  font-weight:700;
  text-transform:uppercase;
  border-bottom:1px solid var(--border-strong);
}
tr:nth-child(even) td{ background: rgba(255,255,255,.02); }
tr:hover td{ background: rgba(255,255,255,.05); }

/* FORMS */
form{
  border-radius:var(--radius);
  padding:1.25rem;
  margin:0 0 1.25rem 0;
  /* glass */
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border:1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
label{ display:block; margin:0 0 .45rem 0; font-weight:700; color:#e6eeff; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea{
  width:100%;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:1rem;
  color:var(--text);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  transition:border .2s, box-shadow .2s, background .2s;
}
input::file-selector-button{
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  color: var(--text);
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
}
textarea{ min-height:120px; resize:vertical; }

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 2px rgba(219,232,255,.25);
  background: rgba(255,255,255,.10);
}

/* =========================================================
   Buttons (button & .button-link) -> GLASS
   ========================================================= */
button,
.button-link{
  display:inline-block;
  border:1px solid rgba(255,255,255,.28);
  color:#061020;
  background: rgba(255,255,255,.75);
  padding:10px 18px;
  border-radius:12px;
  font-size:.95rem;
  font-weight:800;
  cursor:pointer;
  transition: transform .1s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration:none;
}
button:hover,
.button-link:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.9);
}
button:active,
.button-link:active{
  transform: translateY(0);
}

.button-outline{
  background: transparent;
  color:#e7efff;
  border:1px solid rgba(231,239,255,.45);
}
.button-outline:hover{
  background: rgba(255,255,255,.08);
}

/* Danger / Success variants */
.button-danger{
  background: rgba(255, 61, 61, .85);
  color:#fff;
  border-color: rgba(255,255,255,.35);
}
.button-danger:hover{ background: rgba(255, 61, 61, 1); }

.button-success{
  background: rgba(34,197,94,.85);
  color:#fff;
  border-color: rgba(255,255,255,.35);
}
.button-success:hover{ background: rgba(34,197,94,1); }

/* =========================================================
   Alerts -> GLASS panels
   ========================================================= */
.alert{
  padding:14px 18px;
  border-radius:12px;
  margin-bottom:1rem;
  border:1px solid var(--border-light);
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--shadow-sm);
  font-weight:600;
}
.alert-success{ border-color: rgba(16,185,129,.45); color:#d5ffea; }
.alert-error{ border-color: rgba(239,68,68,.45); color:#ffe2e2; }
.alert-warning{ border-color: rgba(245,158,11,.45); color:#fff4db; }

/* =========================================================
   Status badges (on tables etc.)
   ========================================================= */
.status-badge{
  display:inline-block;
  padding:7px 12px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:800;
  border:1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
}
.status-afgewezen{ background: rgba(220,38,38,.28); color:#ffe6e6; border-color: rgba(255,255,255,.34); }
.status-proof{ background: rgba(245,158,11,.28); color:#fff4db; border-color: rgba(255,255,255,.34); }
.status-goedgekeurd{ background: rgba(22,163,74,.3); color:#e7ffef; border-color: rgba(255,255,255,.34); }
.status-wacht{ background: rgba(107,114,128,.28); color:#eaedf5; border-color: rgba(255,255,255,.34); }

/* =========================================================
   Small utilities
   ========================================================= */
.muted{ color:var(--muted); }
.center{ text-align:center; }
.right{ text-align:right; }
.mt-2{ margin-top:1rem; }
.mb-2{ margin-bottom:1rem; }

/* Mobile tweaks */
@media (max-width: 768px){
  .columns{ gap:14px; }
  .column{ min-width:100%; }
}

/* =========================================================
   Optional: header/footer glass containers (if you add them)
   ========================================================= */
.header-glass,
.footer-glass{
  border-radius: 20px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}



/* ===============================
   Glass Header & Footer (add-on)
   =============================== */

/* Container-breedte align met .container */
.app-bar-wrap {
  position: sticky;         /* blijft bovenaan plakken */
  top: 0;
  z-index: 50;
  padding: .75rem 0;
}

/* HEADER */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;

  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1rem;

  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2,6,23,.35);
}

/* Branding links */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0; /* truncate title if small */
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,255,255,.2));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.brand-title {
  font-weight: 800;
  letter-spacing: .2px;
  color: #eaf1ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigatie */
.nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.nav a {
  display: inline-block;
  padding: .55rem .8rem;
  border-radius: 10px;
  color: #e7efff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  transition: transform .1s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
}
.nav .active {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.35);
  color: #0b1220;
}

/* Acties rechts (bijv. profiel / logout) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-actions .pill {
  background: rgba(255,255,255,.12);
  color: #dbe8ff;
  border: 1px solid rgba(255,255,255,.25);
}

/* Breadcrumbs (optioneel, onder header) */
.breadcrumbs {
  max-width: 1100px;
  margin: .6rem auto 0;
  padding: 0 1rem;
  color: #aab7d6;
  font-size: .9rem;
}
.breadcrumbs a { color: #dbe8ff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* FOOTER */
.app-footer-wrap {
  margin-top: 2rem;
  padding: .75rem 0 1.25rem;
}
.app-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;

  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2,6,23,.28);
}
.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #c9d6f3;
  flex-wrap: wrap;
}
.footer-right a {
  color: #e7efff;
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.footer-right a:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
}

/* Responsive tweaks */
@media (max-width: 780px){
  .app-header { padding: .6rem .75rem; }
  .nav { gap: .4rem; }
  .nav a { padding: .5rem .7rem; }
  .breadcrumbs { font-size: .85rem; }
}