/* ============================================================
   KRAANZUIVER KLANTEN PORTAL — DASHBOARD STYLESHEET
   Brand: #0077c0 (primary), #29aae1 (secondary)
   Fonts: Jost, Rubik (Google Fonts)
   ============================================================ */

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

:root {
  --primary:       #0077c0;
  --primary-dark:  #005a96;
  --secondary:     #29aae1;
  --accent:        #e8f4fd;
  --success:       #28a745;
  --warning:       #ffc107;
  --danger:        #dc3545;
  --text-dark:     #1a1a2e;
  --text-mid:      #555;
  --text-light:    #888;
  --bg:            #f0f4f8;
  --sidebar-w:     260px;
  --card-radius:   12px;
  --shadow:        0 4px 20px rgba(0,119,192,.10);
  --shadow-lg:     0 8px 40px rgba(0,119,192,.16);
  --transition:    .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ──────────────────────────────────────────────────
   LOGIN PAGE
   ────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
}

.login-visual {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../assets/images/main-slider/slide1.webp") center/cover no-repeat;
  opacity: .12;
}

.login-visual-content { position: relative; z-index: 1; text-align: center; color: #fff; }

.login-visual-logo { width: 200px; margin-bottom: 40px; filter: brightness(0) invert(1); display: block; }
.login-visual-content a { display: inline-block; transition: opacity .2s; }
.login-visual-content a:hover { opacity: .8; }

.login-visual h2 {
  font-size: 2rem; font-weight: 700; margin-bottom: 16px;
  font-family: 'Jost', sans-serif;
}

.login-visual p { font-size: 1.05rem; opacity: .85; line-height: 1.7; max-width: 340px; }

.login-badges { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

.login-badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .85rem;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}

.login-form-panel {
  width: 480px;
  min-width: 380px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
}

.login-form-panel .brand-top {
  display: none;
  margin-bottom: 32px;
}

.login-form-panel .brand-top img { width: 150px; display: block; }
.login-form-panel .brand-top a { display: inline-block; transition: opacity .2s; }
.login-form-panel .brand-top a:hover { opacity: .75; }

.login-form-panel h1 {
  font-size: 1.9rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text-dark);
}

.login-form-panel .subtitle {
  font-size: .95rem; color: var(--text-light); margin-bottom: 36px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block; font-size: .85rem;
  font-weight: 600; color: var(--text-mid);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em;
}

.form-group .input-wrap {
  position: relative;
}

.form-group .input-wrap i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: .95rem;
}

.form-group input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1.5px solid #dde2e8;
  border-radius: 8px;
  font-size: .97rem; font-family: 'Jost', sans-serif;
  color: var(--text-dark);
  background: #f8fafc;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-field input::placeholder,
.form-field select::placeholder,
input::placeholder, textarea::placeholder {
  color: #aab0be; opacity: 1; font-style: italic; font-weight: 400;
}
.form-group input::-webkit-input-placeholder,
.form-field input::-webkit-input-placeholder,
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: #aab0be; opacity: 1; font-style: italic; font-weight: 400;
}
.form-group input::-moz-placeholder,
.form-field input::-moz-placeholder,
input::-moz-placeholder, textarea::-moz-placeholder {
  color: #aab0be; opacity: 1; font-style: italic; font-weight: 400;
}

.form-group input:focus {
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(41,170,225,.15);
}

.form-group .toggle-pw {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: var(--text-light); font-size: .9rem;
  background: none; border: none; padding: 0;
  transition: color var(--transition);
}
.form-group .toggle-pw:hover { color: var(--primary); }

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }

.form-row label { display: flex; align-items: center; gap: 8px; font-size: .87rem; cursor: pointer; color: var(--text-mid); }

.form-row a { font-size: .87rem; color: var(--primary); font-weight: 500; }
.form-row a:hover { text-decoration: underline; }

.btn-primary-full {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 600; font-family: 'Jost', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(0,119,192,.3);
}

.btn-primary-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,119,192,.4);
}

.btn-primary-full i { font-size: .9rem; }

.login-divider { text-align: center; margin: 28px 0 0; font-size: .85rem; color: var(--text-light); }

.login-divider a { color: var(--primary); font-weight: 600; }

.form-error {
  background: #fff3f3;
  border: 1px solid #f5c5c5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .875rem;
  color: var(--danger);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  display: none;
}
.form-error.show { display: flex; }

/* ──────────────────────────────────────────────────
   SIDEBAR
   ────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #0a1f3c 0%, #0d2d50 50%, #0f3463 100%);
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo img { width: 150px; filter: brightness(0) invert(1); }

.sidebar-user {
  padding: 20px 24px;
  display: flex; align-items: center; gap: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-user-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info { overflow: hidden; }

.sidebar-user-name {
  font-size: .9rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: .75rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .05em;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.sidebar-section-label {
  font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 12px 12px 6px;
}

.sidebar-nav a {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all var(--transition);
  margin-bottom: 2px;
}

.sidebar-nav a i {
  width: 20px; text-align: center;
  font-size: .95rem; flex-shrink: 0;
  transition: color var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(0,119,192,.5), rgba(41,170,225,.35));
  color: #fff;
  border-left: 3px solid var(--secondary);
}

.sidebar-nav a.active i { color: var(--secondary); }

.sidebar-nav a .badge {
  margin-left: auto;
  background: var(--secondary);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}

.sidebar-footer {
  padding: 16px 12px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-footer a {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}
.sidebar-footer a:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-footer a i { width: 20px; text-align: center; }

/* Sidebar toggle button (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.sidebar-overlay.show { display: block; }

/* ──────────────────────────────────────────────────
   MAIN CONTENT
   ────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOP BAR */
.topbar {
  background: #fff;
  height: 68px;
  border-bottom: 1px solid #e8edf2;
  display: flex; align-items: center;
  padding: 0 32px;
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.sidebar-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: var(--text-mid);
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.sidebar-toggle:hover { background: var(--accent); }

.page-breadcrumb { font-size: .85rem; color: var(--text-light); }
.page-breadcrumb span { color: var(--text-dark); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.topbar-notification {
  position: relative;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--text-mid);
  transition: background var(--transition);
}
.topbar-notification:hover { background: var(--accent); color: var(--primary); }

.topbar-notification .dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
}

.topbar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .9rem;
  cursor: pointer;
}

/* PAGE BODY */
.page-body {
  padding: 32px;
  flex: 1;
}

/* ──────────────────────────────────────────────────
   CARDS & STATS
   ────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-dark);
}

.page-header p { font-size: .92rem; color: var(--text-light); margin-top: 4px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #eef2f7;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.stat-icon.blue   { background: rgba(0,119,192,.1); color: var(--primary); }
.stat-icon.green  { background: rgba(40,167,69,.1);  color: var(--success); }
.stat-icon.teal   { background: rgba(41,170,225,.12); color: var(--secondary); }
.stat-icon.orange { background: rgba(255,193,7,.15); color: #e67e22; }

.stat-info { flex: 1; }

.stat-value {
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-dark); line-height: 1;
}

.stat-label {
  font-size: .8rem; color: var(--text-light);
  margin-top: 5px; text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-trend {
  font-size: .75rem; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  margin-top: 6px; display: inline-block;
}
.stat-trend.up { background: rgba(40,167,69,.1); color: var(--success); }
.stat-trend.neutral { background: rgba(100,100,100,.08); color: var(--text-light); }

/* CONTENT GRID */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
  overflow: hidden;
}

.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f4f8;
  display: flex; align-items: center; justify-content: space-between;
}

.card-header h3 {
  font-size: 1rem; font-weight: 700; color: var(--text-dark);
}

.card-header a {
  font-size: .82rem; color: var(--primary); font-weight: 600;
}
.card-header a:hover { text-decoration: underline; }

.card-body { padding: 0; }

/* ──────────────────────────────────────────────────
   ORDERS TABLE
   ────────────────────────────────────────────────── */
.orders-table-wrap { overflow-x: auto; }

.orders-table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem;
}

.orders-table thead th {
  background: #f8fafc;
  padding: 11px 20px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

.orders-table tbody tr {
  border-bottom: 1px solid #f0f4f8;
  transition: background var(--transition);
}
.orders-table tbody tr:last-child { border-bottom: none; }
.orders-table tbody tr:hover { background: #f8fbff; }

.orders-table tbody td {
  padding: 14px 20px;
  color: var(--text-dark);
  vertical-align: middle;
}

.order-id { font-weight: 600; color: var(--primary); }

.order-product {
  display: flex; align-items: center; gap: 11px;
}

.order-product-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--primary); flex-shrink: 0;
}

.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem; font-weight: 600;
  white-space: nowrap;
}

.badge-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-status.active   { background: rgba(40,167,69,.1);   color: var(--success); }
.badge-status.active::before   { background: var(--success); }
.badge-status.pending  { background: rgba(255,193,7,.12);  color: #e6a800; }
.badge-status.pending::before  { background: #ffc107; }
.badge-status.delivered{ background: rgba(0,119,192,.1);   color: var(--primary); }
.badge-status.delivered::before{ background: var(--primary); }
.badge-status.cancelled{ background: rgba(220,53,69,.08);  color: var(--danger); }
.badge-status.cancelled::before{ background: var(--danger); }

.btn-sm {
  padding: 7px 16px;
  border-radius: 7px; border: 1.5px solid #dde2e8;
  background: #fff; font-size: .8rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer;
  transition: all var(--transition); font-family: 'Jost', sans-serif;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary); background: var(--accent); }

.btn-primary-sm {
  padding: 9px 22px;
  border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: .875rem; font-weight: 600;
  cursor: pointer; font-family: 'Jost', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 14px rgba(0,119,192,.25);
}
.btn-primary-sm:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,119,192,.35); }

/* ──────────────────────────────────────────────────
   INFO PANEL (right sidebar panel)
   ────────────────────────────────────────────────── */
.info-list { list-style: none; }

.info-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  font-size: .875rem;
  border-bottom: 1px solid #f0f4f8;
}
.info-list li:last-child { border-bottom: none; }

.info-list .info-key { color: var(--text-light); font-weight: 500; }
.info-list .info-val { font-weight: 600; color: var(--text-dark); text-align: right; }

/* NEXT SERVICE */
.service-countdown-card {
  padding: 24px;
}

.countdown-header { margin-bottom: 16px; }
.countdown-header h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.countdown-header p { font-size: .82rem; color: var(--text-light); }

.countdown-progress-wrap {
  margin: 16px 0;
}

.countdown-progress-bar {
  height: 8px; background: #eef2f7;
  border-radius: 20px; overflow: hidden;
}

.countdown-progress-fill {
  height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .6s ease;
}

.countdown-labels {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--text-light);
  margin-top: 8px;
}

.countdown-days {
  display: flex; gap: 12px; justify-content: center;
  margin: 20px 0;
}

.countdown-block {
  text-align: center;
  background: var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 60px;
}

.countdown-block .num {
  font-size: 1.6rem; font-weight: 700; color: var(--primary);
  line-height: 1;
}

.countdown-block .lbl {
  font-size: .65rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .05em;
  margin-top: 4px;
}

/* ──────────────────────────────────────────────────
   WACHTWOORD & PROFIEL FORMS
   ────────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.settings-card { padding: 28px; }

.settings-card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 6px; color: var(--text-dark);
}

.settings-card .section-desc {
  font-size: .85rem; color: var(--text-light);
  margin-bottom: 24px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block; font-size: .8rem;
  font-weight: 700; color: var(--text-mid);
  margin-bottom: 7px; text-transform: uppercase;
  letter-spacing: .04em;
}

.form-field .input-w { position: relative; }

.form-field .input-w i {
  position: absolute; left: 14px;
  top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: .9rem;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid #dde2e8;
  border-radius: 8px;
  font-size: .9rem; font-family: 'Jost', sans-serif;
  color: var(--text-dark); background: #f8fafc;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(41,170,225,.15);
}

.form-field input[readonly] { background: #f0f4f8; color: var(--text-light); cursor: not-allowed; }

.btn-save {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: .9rem; font-weight: 600;
  font-family: 'Jost', sans-serif; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,119,192,.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,119,192,.35); }

.pw-strength {
  margin-top: 8px;
  height: 4px; background: #eef2f7; border-radius: 4px; overflow: hidden;
}

.pw-strength-fill {
  height: 100%; border-radius: 4px;
  transition: width .4s ease, background .4s ease;
  width: 0;
}

.pw-strength-fill.weak   { width: 30%; background: var(--danger); }
.pw-strength-fill.medium { width: 60%; background: var(--warning); }
.pw-strength-fill.strong { width: 100%; background: var(--success); }

.alert-box {
  display: none; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 8px;
  font-size: .875rem; margin-top: 16px;
}
.alert-box.show { display: flex; }
.alert-box.success { background: rgba(40,167,69,.1); color: var(--success); border: 1px solid rgba(40,167,69,.2); }
.alert-box.error   { background: rgba(220,53,69,.08); color: var(--danger); border: 1px solid rgba(220,53,69,.15); }

/* ──────────────────────────────────────────────────
   EMPTY STATE
   ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3rem; color: #dde2e8; display: block; margin-bottom: 18px;
}

.empty-state h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.empty-state p { font-size: .875rem; color: var(--text-light); max-width: 280px; margin: 0 auto 20px; line-height: 1.6; }

/* ──────────────────────────────────────────────────
   PAGINATION
   ────────────────────────────────────────────────── */
.table-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #f0f4f8;
  font-size: .82rem; color: var(--text-light);
}

.pagination { display: flex; align-items: center; gap: 6px; }

.page-btn {
  width: 32px; height: 32px;
  border-radius: 7px; border: 1.5px solid #dde2e8;
  background: #fff; font-size: .82rem; font-weight: 600;
  cursor: pointer; color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-family: 'Jost', sans-serif;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--primary); color: var(--primary); background: var(--accent);
}

/* ──────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content { margin-left: 0; }

  .sidebar-toggle { display: flex; }

  .topbar { padding: 0 20px; }

  .page-body { padding: 20px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* Login */
  .login-page { flex-direction: column; }
  .login-visual { display: none; }
  .login-form-panel {
    width: 100%; min-width: unset;
    padding: 40px 24px;
    min-height: 100vh;
    justify-content: center;
  }
  .login-form-panel .brand-top { display: block; }

  /* Dashboard */
  .stats-grid { grid-template-columns: 1fr; }

  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td {
    display: block; width: 100%;
  }
  .orders-table tr {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    margin: 8px 16px;
    padding: 4px 0;
    width: calc(100% - 32px);
    overflow: hidden;
  }
  .orders-table td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 16px;
    font-size: .82rem;
  }
  .orders-table td::before {
    content: attr(data-label);
    font-weight: 700; font-size: .72rem;
    text-transform: uppercase; color: var(--text-light);
    flex-shrink: 0; margin-right: 12px;
  }

  .table-footer {
    flex-direction: column; gap: 12px; text-align: center;
  }

  .settings-card { padding: 20px; }

  .topbar-notification { display: none; }
}

@media (max-width: 380px) {
  .page-body { padding: 14px; }
  .login-form-panel { padding: 32px 18px; }
}

/* ── Notificatie bel & dropdown ────────────────────────────── */
.kz-notif-wrap { position: relative; }

.topbar-notification {
  position: relative;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-mid); font-size: 17px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.topbar-notification:hover,
.topbar-notification.active { background: var(--primary-light, #eff6ff); color: var(--primary); }

.kz-notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  animation: kzPop .3s cubic-bezier(.19,1,.22,1);
}
@keyframes kzPop { from { transform: scale(0); } to { transform: scale(1); } }

.kz-notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.14);
  z-index: 500; overflow: hidden;
  animation: kzDropIn .22s cubic-bezier(.19,1,.22,1);
}
@keyframes kzDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 480px) { .kz-notif-dropdown { width: calc(100vw - 32px); right: -8px; } }

.kz-notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 12px; border-bottom: 1px solid #f1f5f9;
  font-weight: 700; font-size: 14px; color: #0f172a;
}
.kz-notif-mark-all {
  background: none; border: none; font-size: 12px; color: #0077c0;
  cursor: pointer; font-weight: 600; padding: 0; transition: color .2s;
}
.kz-notif-mark-all:hover { color: #005a96; }

.kz-notif-list { max-height: 320px; overflow-y: auto; }

.kz-notif-empty {
  padding: 36px 20px; text-align: center; color: #94a3b8;
  font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.kz-notif-empty i { font-size: 28px; color: #4FBFA8; }

.kz-notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #f8fafc;
  text-decoration: none; color: inherit; transition: background .15s; position: relative;
}
.kz-notif-item:last-child { border-bottom: none; }
.kz-notif-item:hover { background: #f8fafc; }
.kz-notif-item.read { opacity: .65; }

.kz-notif-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.kz-notif-body { flex: 1; min-width: 0; }
.kz-notif-title {
  font-size: 13px; font-weight: 600; color: #0f172a;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kz-notif-text { font-size: 12px; color: #64748b; line-height: 1.4; }
.kz-notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0077c0; flex-shrink: 0; margin-top: 4px;
}

/* ─── Custom select ──────────────────────────────────────── */
.kz-select { position: relative; }
.kz-select-btn {
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-family: inherit; font-size: .9rem; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--text-dark); text-align: left; transition: border-color .15s, box-shadow .15s;
}
.kz-select-btn:focus, .kz-select-btn.open {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,192,.12); outline: none;
}
.kz-select-btn .kz-select-placeholder { color: #94a3b8; }
.kz-select-arrow { font-size: .75rem; color: var(--text-light); transition: transform .2s; flex-shrink: 0; }
.kz-select-btn.open .kz-select-arrow { transform: rotate(180deg); }
.kz-select-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12); z-index: 200; overflow: hidden;
  max-height: 220px; overflow-y: auto;
}
.kz-select-dropdown.open { display: block; }
.kz-select-option {
  padding: 10px 14px; font-size: .875rem; color: var(--text-dark);
  cursor: pointer; transition: background .12s;
}
.kz-select-option:hover { background: #f0f9ff; }
.kz-select-option.selected { background: rgba(0,119,192,.08); color: var(--primary); font-weight: 600; }
.kz-select-option.placeholder { color: #94a3b8; }
select[data-kz-hidden] { display: none !important; }
