/* ==========================================================================
   Knippin-thema voor de klantzijde van het Klantenpaneel.

   Deel 1 is overgenomen uit de Knippin-marketingsite
   (webdesign/knippin/assets/css/style.css): dezelfde klassen en waarden voor
   top-bar, header, menu, hero, knoppen, formulieren en footer, zodat paneel
   en site er identiek uitzien. Alles is ge-scoped onder .theme-knippin.

   Deel 2 kleurt de pagina-inhoud van het paneel (voorgecompileerde Tailwind
   met het 'brand'-palet) om naar de Knippin-kleuren. Tailwind kunnen we niet
   opnieuw bouwen, dus overschrijven we de gebruikte brand-utilities hier.
   ========================================================================== */

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

.theme-knippin {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-navy: #0f172a;
  --primary: #0066cc;
  --primary-hover: #0052a3;
  --primary-light: #f0f7ff;
  --primary-border: #cce3ff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --transition: all 0.18s ease;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-secondary);
  background-color: var(--bg-page) !important;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.theme-knippin h1, .theme-knippin h2, .theme-knippin h3,
.theme-knippin h4, .theme-knippin h5, .theme-knippin h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.theme-knippin a { color: var(--primary); text-decoration: none; transition: var(--transition); }
.theme-knippin a:hover { color: var(--primary-hover); }

.theme-knippin .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top-bar ---- */
.theme-knippin .top-bar {
  background: var(--bg-navy);
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-knippin .top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.theme-knippin .top-bar-left, .theme-knippin .top-bar-right { display: flex; align-items: center; gap: 24px; }
.theme-knippin .top-bar a { color: #cbd5e1; }
.theme-knippin .top-bar a:hover { color: #ffffff; }
.theme-knippin .status-dot {
  width: 7px; height: 7px; background-color: #22c55e; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}

/* ---- Header & menu ---- */
.theme-knippin .site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.theme-knippin .header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.theme-knippin .logo-link { display: flex; align-items: center; }
.theme-knippin .logo-link img { height: 40px; width: auto; display: block; }
.theme-knippin .main-nav { display: flex; align-items: center; gap: 6px; }
.theme-knippin .nav-item { position: relative; }
.theme-knippin .nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}
.theme-knippin .nav-link:hover { color: var(--primary); background: var(--bg-subtle); }
.theme-knippin .nav-link.active { color: var(--primary); font-weight: 600; }

.theme-knippin .dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 260px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: var(--transition);
  z-index: 1100;
}
.theme-knippin .dropdown-menu-right { left: auto; right: 0; }
/* Brug over het gat tussen menu-item en dropdown zodat hover niet wegvalt. */
.theme-knippin .dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.theme-knippin .nav-item:hover .dropdown-menu,
.theme-knippin .nav-item:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-knippin .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.theme-knippin .dropdown-item:hover { background: var(--bg-subtle); color: var(--primary); }
.theme-knippin .dropdown-item-icon { color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.theme-knippin .dropdown-item-title { font-weight: 600; color: var(--text-main); display: block; font-size: 13.5px; }
.theme-knippin .dropdown-item-sub { font-size: 12px; color: var(--text-muted); display: block; line-height: 1.4; }

.theme-knippin .header-actions { display: flex; align-items: center; gap: 10px; }
.theme-knippin .cart-btn {
  background: var(--bg-navy);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.theme-knippin .cart-btn:hover { background: var(--primary); color: #ffffff; }
.theme-knippin .cart-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.theme-knippin .mobile-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

/* ---- Knoppen & labels ---- */
.theme-knippin .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: inherit;
}
.theme-knippin .btn-primary { background: var(--primary); color: #ffffff; }
.theme-knippin .btn-primary:hover { background: var(--primary-hover); color: #ffffff; }
.theme-knippin .btn-dark { background: var(--bg-navy); color: #ffffff; }
.theme-knippin .btn-dark:hover { background: #1e293b; color: #ffffff; }
.theme-knippin .btn-block { width: 100%; }

.theme-knippin .section-badge {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.theme-knippin .hero .section-badge { color: #93c5fd; }

/* ---- Hero & secties ---- */
.theme-knippin .hero {
  position: relative;
  background-color: var(--bg-navy);
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.80) 100%),
    url('images/hero-datacenter.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--border);
}
.theme-knippin .hero-compact { padding: 48px 0 54px; }
.theme-knippin .hero-content { max-width: 820px; }
.theme-knippin .hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.theme-knippin .hero p.lead { color: #cbd5e1; font-size: 1.08rem; max-width: 680px; margin-bottom: 28px; }
.theme-knippin .section { padding: 68px 0; }

/* ---- Formulieren ---- */
.theme-knippin .form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}
.theme-knippin .form-group { margin-bottom: 14px; }
.theme-knippin .form-label { display: block; font-weight: 600; font-size: 13px; color: var(--text-main); margin-bottom: 5px; }
.theme-knippin .kn-login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 32px;
  align-items: stretch;
}
.theme-knippin .kn-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 13.5px; }
.theme-knippin .kn-alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }

/* Alle tekstvelden in het paneel (ook x-text-input) krijgen de .form-control-look.
   !important + hogere specificiteit om forms.css en de Tailwind-utilities te overstemmen. */
.theme-knippin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
.theme-knippin textarea,
.theme-knippin select {
  width: 100%;
  padding: 9px 12px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text-main) !important;
  background-color: #ffffff;
  box-shadow: none !important;
}
.theme-knippin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):focus,
.theme-knippin textarea:focus,
.theme-knippin select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
}
.theme-knippin input::placeholder, .theme-knippin textarea::placeholder { color: #94a3b8; }
.theme-knippin textarea { min-height: 100px; resize: vertical; }
.theme-knippin input[type="checkbox"], .theme-knippin input[type="radio"] { accent-color: var(--primary); }

/* ---- Footer ---- */
.theme-knippin .site-footer { background: var(--bg-navy); color: #94a3b8; padding: 60px 0 28px; }
.theme-knippin .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.theme-knippin .footer-brand p { font-size: 13.5px; margin-bottom: 16px; line-height: 1.6; }
.theme-knippin .site-footer .footer-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.theme-knippin .footer-links { list-style: none; margin: 0; padding: 0; }
.theme-knippin .footer-links li { margin-bottom: 8px; }
.theme-knippin .footer-links a { color: #94a3b8; font-size: 13.5px; }
.theme-knippin .footer-links a:hover { color: #ffffff; }
.theme-knippin .footer-contact-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.theme-knippin .footer-contact-list li { margin-bottom: 10px; line-height: 1.5; }
.theme-knippin .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
}
.theme-knippin .footer-bottom a { color: #94a3b8; }
.theme-knippin .footer-bottom a:hover { color: #ffffff; }

/* ---- Responsive (zoals style.css) ---- */
@media (max-width: 1100px) {
  .theme-knippin .nav-link { padding: 8px 10px; }
}
@media (max-width: 992px) {
  .theme-knippin .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .theme-knippin .top-bar-left { display: none; }
  .theme-knippin .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .theme-knippin .main-nav.open { display: flex; }
  .theme-knippin .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-page);
    margin-top: 4px;
  }
  .theme-knippin .mobile-toggle { display: inline-flex; }
}
@media (max-width: 768px) {
  .theme-knippin .footer-grid { grid-template-columns: 1fr; }
  .theme-knippin .section { padding: 40px 0; }
}

/* ==========================================================================
   Deel 2 — paneelinhoud omkleuren naar Knippin (brand-palet → slate/blauw)
   ========================================================================== */

/* Achtergronden */
.theme-knippin .bg-brand-50 { background-color: var(--bg-page); }
.theme-knippin .bg-brand-50\/40 { background-color: rgba(241, 245, 249, .4); }
.theme-knippin .bg-brand-50\/60 { background-color: rgba(241, 245, 249, .6); }
.theme-knippin .bg-brand-700 { background-color: var(--primary); }
.theme-knippin .bg-brand-800 { background-color: var(--primary-hover); }
.theme-knippin .bg-brand-900 { background-color: var(--bg-navy); }
.theme-knippin .bg-brand-950 { background-color: #0b1120; }
.theme-knippin .bg-brand-950\/50 { background-color: rgba(15, 23, 42, .5); }
.theme-knippin .hover\:bg-brand-50:hover { background-color: var(--bg-subtle); }
.theme-knippin .hover\:bg-brand-50\/40:hover { background-color: rgba(241, 245, 249, .4); }
.theme-knippin .hover\:bg-brand-800:hover { background-color: var(--primary-hover); }
.theme-knippin .hover\:bg-brand-800\/60:hover { background-color: rgba(0, 82, 163, .6); }
.theme-knippin .hover\:bg-brand-900:hover { background-color: #1e293b; }
.theme-knippin .disabled\:bg-brand-50:disabled { background-color: var(--bg-subtle); }

/* Tekst: brand-700/800/600 is in het paneel vooral lopende tekst → slate;
   links (a.text-brand-*) worden Knippin-blauw zoals op de site. */
.theme-knippin .text-brand-100 { color: #f1f5f9; }
.theme-knippin .text-brand-200 { color: #e2e8f0; }
.theme-knippin .text-brand-300 { color: #cbd5e1; }
.theme-knippin .text-brand-400 { color: #94a3b8; }
.theme-knippin .text-brand-500 { color: var(--text-muted); }
.theme-knippin .text-brand-600 { color: var(--text-muted); }
.theme-knippin .text-brand-700 { color: var(--text-secondary); }
.theme-knippin .text-brand-800 { color: var(--text-main); }
.theme-knippin .text-brand-900 { color: var(--text-main); }
.theme-knippin .text-brand-950 { color: var(--text-main); }
.theme-knippin a.text-brand-600, .theme-knippin a.text-brand-700, .theme-knippin a.text-brand-800 { color: var(--primary); }
.theme-knippin .hover\:text-brand-700:hover, .theme-knippin .hover\:text-brand-900:hover { color: var(--primary-hover); }
.theme-knippin .disabled\:text-brand-400:disabled { color: #94a3b8; }
/* Witte tekst op gekleurde knoppen ongemoeid laten. */
.theme-knippin a.text-white, .theme-knippin a.text-white:hover { color: #ffffff; }

/* Randen */
.theme-knippin .border-brand-100,
.theme-knippin .divide-brand-100 > :not([hidden]) ~ :not([hidden]),
.theme-knippin .divide-brand-50 > :not([hidden]) ~ :not([hidden]) { border-color: var(--border); }
.theme-knippin .border-brand-200 { border-color: var(--border-strong); }
.theme-knippin .border-brand-300 { border-color: var(--border-strong); }
.theme-knippin .border-brand-700, .theme-knippin .border-brand-800 { border-color: var(--primary); }
.theme-knippin .border-brand-950\/30 { border-color: rgba(15, 23, 42, .3); }
.theme-knippin .hover\:border-brand-400:hover, .theme-knippin .hover\:border-brand-500:hover,
.theme-knippin .focus\:border-brand-500:focus { border-color: var(--primary); }
.theme-knippin .ring-brand-200 { --tw-ring-color: var(--border-strong); }
.theme-knippin .focus\:ring-brand-500:focus { --tw-ring-color: var(--primary); }
.theme-knippin .shadow-brand-900\/5 { --tw-shadow-color: rgba(15, 23, 42, .05); }

/* Vormtaal: strakker zoals het ontwerp (geen grote ronde hoeken). */
.theme-knippin main .rounded-2xl,
.theme-knippin main .rounded-xl { border-radius: var(--radius-md); }
.theme-knippin main .rounded-lg { border-radius: var(--radius-sm); }
.theme-knippin main .shadow-sm { box-shadow: none; }

/* Paneel-layout (ingelogd): zijbalk + inhoud in een grid op de containerlijn.
   De paneelviews hebben zelf een 'mx-auto max-w-* px-* py-12'-wrapper; die
   neutraliseren we hier zodat de inhoud de volle kolom gebruikt. */
.theme-knippin .kn-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 68px;
  align-items: start;
}
.theme-knippin .kn-panel-content > div[class*="max-w-"] {
  max-width: none;
  padding: 0;
}
.theme-knippin .kn-panel-aside { position: sticky; top: 96px; }
@media (max-width: 992px) {
  .theme-knippin .kn-panel { grid-template-columns: 1fr; padding-top: 24px; }
  .theme-knippin .kn-panel-aside { position: static; }
}
