/* assets/css/base.css */
/* Algemene basis */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6fb;
  color: #333;
}
/* Login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-container {
  max-width: 420px;
  width: 100%;
  padding: 16px;
}
.login-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.login-logo img {
  height: 40px;
}
.login-box h1 {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 24px;
}
.login-subtitle {
  color: #777;
  margin-bottom: 24px;
  font-size: 14px;
}
label {
  display: block;
  margin: 8px 0 4px;
  font-size: 14px;
}
input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d1d9e6;
  font-size: 14px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 14px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;   /* geen onderstreepte link */
}
.btn-primary:hover {
  background: #005fcc;
}

.login-remember {
  margin-top: 8px;
  font-size: 13px;
}
/* Dashboard */
/* --- Topbar / hoofdnavigatie --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 24px;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Linkerkant: logo */
.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.topbar-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #f97316, #ea580c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.6);
}

.topbar-logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.topbar-logo-text span {
    color: #f97316;
}

/* Rechterkant: menu + user */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Navigatielinks rechtsboven */
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-link {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #e5e7eb;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topbar-link:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
}

.topbar-link-logout {
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.topbar-link-logout:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.9);
}

/* Gebruiker rechtsboven */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #38bdf8, #1d4ed8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #eff6ff;
}

.topbar-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

/* admin-badge */
.badge-admin {
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.6);
    color: #facc15;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Mobiel: iets compacter */
@media (max-width: 640px) {
    .topbar {
        padding: 8px 12px;
    }
    .topbar-logo-text {
        display: none; /* alleen rond logootje laten zien */
    }
    .topbar-nav {
        gap: 6px;
    }
    .topbar-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    .topbar-user-meta {
        display: none; /* alleen avatar op heel smal scherm */
    }
}


.dashboard-main {
  padding: 24px;
}
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 18px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.card h2 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: #555;
}
.btn-secondary {
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e6efff;
    border: none;
    color: #005fcc;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #d2e1ff;
}
.simple-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.simple-list li {
  font-size: 13px;
  padding: 4px 0;
}
.logo-box {
  text-align: left; /* <- niet meer centreren */
  margin-top: 0;
  margin-bottom: 16px;
}
.logo-box img {
  max-width: 260px;
  height: auto;
  display: block; /* zorgt dat hij netjes aan de linkerkant “pakt” */
}
.login-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 28px 28px 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.login-subtitle {
  color: #777;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 14px;
}
.table-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table-list thead {
  background: #f3f6fb;
}
.table-list th, .table-list td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3e8f3;
  text-align: left;
  vertical-align: top;
}
.table-list tr:hover {
  background: #f8fbff;
}
.table-list .subtext {
  color: #777;
  font-size: 12px;
}

/* ---------- Form styling (admin) ---------- */

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-field {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d9e6;
    padding: 9px 11px;
    font-size: 14px;
    background: #f9fbff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #0a84ff;
    box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.12);
    background: #ffffff;
}

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
}

.form-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

/* ---------- Logo upload dropzone ---------- */

.hidden-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.upload-dropzone {
    margin-top: 4px;
    border-radius: 10px;
    border: 1px dashed #cbd5f3;
    padding: 14px 14px;
    background: #f9fbff;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.upload-dropzone::before {
    content: "⇧";
    font-size: 18px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #d1d9e6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0078ff;
}

.upload-dropzone:hover {
    background: #eef4ff;
    border-color: #9cb6ff;
    box-shadow: 0 0 0 2px rgba(10, 120, 255, 0.06);
}

.upload-dropzone.dragover {
    background: #e0ecff;
    border-color: #0078ff;
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.18);
}

.upload-dropzone-title {
    font-weight: 500;
    color: #333;
}

.upload-dropzone-subtitle {
    font-size: 12px;
    color: #777;
}

.upload-filename {
    margin-top: 6px;
    font-size: 12px;
    color: #555;
}

.upload-preview {
    margin-top: 8px;
}

.upload-preview img {
    max-height: 40px;
    border-radius: 6px;
    border: 1px solid #e1e5f0;
    background: #fff;
}



/* Dashboard centreren zoals de andere pagina's */
.dashboard-main-centered {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    width: 100%;
}

/* De kaart-container netter verdelen */
/* Dashboard-kaarten onder elkaar */
.dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards gelijk trekken */
.dashboard-cards .card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148,163,184,0.15);
}

/* Kleine lijst in laatste logins-card */
.simple-list {
    padding-left: 16px;
    margin: 0;
}

.simple-list li {
    margin-bottom: 6px;
    font-size: 14px;
}


.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* gecentreerde content, vaste max breedte */
.dashboard-main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

/* voor formulieren / kaarten */
.form-page {
    width: 100%;
}


.table-list a.btn-action {
    color: #2563eb;        /* blauw */
    font-weight: 500;
    text-decoration: none;
}

.table-list a.btn-action:hover {
    text-decoration: underline;
}


.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back-top {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}


/* Basis layout */
.dashboard-main {
    flex: 1;
    padding: 24px 16px 40px;
}

/* Alle gecentreerde pagina’s dezelfde breedte geven */
.dashboard-main.form-page,
.dashboard-main.logs-main,
.dashboard-main.admin-main,
.dashboard-main.dossier-overview-page {
    max-width: 1100px;   /* zelfde breedte voor dossier-detail, logs, admin, overzicht */
    margin: 0 auto;
}


/* Relaties-overzicht: bredere kaart / layout */
.dashboard-main.relaties-page {
    max-width: 1100px;     /* breder werkvlak */
    margin: 24px auto;
}

.card.card-wide {
    width: 100%;
    max-width: none;       /* haalt de smalle max-width van .card weg */
}

/* Voor tabellen / lijsten op die pagina */
.relaties-page .table-wrapper {
    margin-top: 16px;
}

.relaties-page .page-title-row h1 {
    font-size: 20px;
}


/* Top-level cards op dashboard-pagina's over de volle breedte van de content */
.dashboard-main > .card {
    width: 100%;
    max-width: 100%;
}


/* Op het login-scherm mag de primaire knop wel 100% zijn */
.login-box .btn-primary {
  width: 100%;
  display: block;
  text-align: center;
}
