:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-hover: #f1f5f9;
    --sidebar: #17191d;
    --sidebar-soft: #23262c;
    --sidebar-text: #f8fafc;
    --sidebar-muted: #9ca3af;
    --text: #1f2937;
    --text-strong: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;
    --success: #15803d;
    --success-soft: #ecfdf3;
    --warning: #b45309;
    --warning-soft: #fffbeb;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --sidebar-width: 280px;
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--accent);
}

img {
    max-width: 100%;
}

.admin-page {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.admin-content {
    min-width: 0;
}

.admin-main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 36px 48px;
}

.admin-main h1 {
    margin-bottom: 6px;
    color: var(--text-strong);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.admin-main > p,
.admin-welcome > p {
    color: var(--text-muted);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100vh;
    overflow: hidden;
    background: var(--sidebar);
    color: var(--sidebar-text);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: var(--sidebar-text);
    text-decoration: none;
}

.admin-brand-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--sidebar-soft);
    font-size: 18px;
}

.admin-brand-text {
    display: grid;
    min-width: 0;
}

.admin-brand-text strong {
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-brand-text small {
    color: var(--sidebar-muted);
    font-size: 12px;
}

.admin-sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sidebar-muted);
    cursor: pointer;
}

.admin-nav {
    display: block;
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 24px;
    scrollbar-color: #3f434b transparent;
    scrollbar-width: thin;
}

.admin-nav-section + .admin-nav-section {
    margin-top: 22px;
}

.admin-nav-label {
    display: block;
    margin: 0 10px 8px;
    color: var(--sidebar-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-bottom: 4px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.admin-nav-link.active {
    background: #fff;
    color: #17191d;
}

.admin-nav-icon {
    display: grid;
    flex: 0 0 auto;
    width: 22px;
    place-items: center;
    font-size: 15px;
}

.admin-sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-view-site {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.admin-view-site:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}


.admin-topbar strong {
    display: block;
    color: var(--text-strong);
    font-size: 16px;
}

.admin-topbar span {
    color: var(--text-muted);
    font-size: 13px;
}



.admin-user-trigger span {
    display: grid;
    text-align: left;
}

.admin-user-trigger strong {
    font-size: 13px;
}

.admin-user-trigger small {
    color: var(--text-muted);
    font-size: 11px;
}


.admin-user-menu.open .admin-user-dropdown {
    display: block;
}

.admin-btn,
.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.admin-btn,
.hc-btn.primary {
    background: var(--accent);
    color: #fff;
}

.admin-btn:hover,
.hc-btn.primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.hc-btn.light {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}



.admin-card,
.admin-panel,
.hc-card,
.dashboard-card,
.submission-card,
.profile-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.admin-card,
.admin-panel,
.dashboard-card,
.submission-card {
    padding: 24px;
}

.hc-card {
    overflow: hidden;
}


.hc-card-header h2,
.admin-panel h2 {
    color: var(--text-strong);
    font-size: 21px;
}


.admin-cards,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.admin-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.admin-card span {
    color: var(--text-strong);
    font-size: 38px;
    font-weight: 800;
}

.admin-card i {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 19px;
}

.dashboard-card i {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 26px;
}

.dashboard-card h2 {
    color: var(--text-strong);
    font-size: 36px;
}

.dashboard-card p {
    color: var(--text-muted);
}



.admin-welcome {
    margin-bottom: 28px;
}

.dashboard-welcome-content{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.dashboard-welcome-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    width:max-content;

    padding:8px 14px;

    background:#ecfdf5;
    color:#16a34a;

    border:1px solid #bbf7d0;
    border-radius:999px;

    font-size:13px;
    font-weight:600;
}

.dashboard-welcome-badge i{
    font-size:11px;
}


.dashboard-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    text-decoration: none;
}

.dashboard-list strong {
    color: var(--text-strong);
}

.dashboard-list span {
    color: var(--text-muted);
    font-size: 13px;
}

.dashboard-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
}

.dashboard-media-grid img {
    width: 100%;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
}

.status-ok{
    display:inline-flex;
    align-items:center;
    gap:6px;

    color:#16a34a;
    font-weight:600;
}

.status-ok i{
    font-size:12px;
}


.quick-actions a {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}



.admin-table th,
.admin-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}


.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table a {
    color: var(--text-strong);
    font-weight: 700;
    text-decoration: none;
}

.admin-team-thumb {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 9px;
    object-fit: cover;
}

.hc-form-group,
.form-group-limit,
.payment-description-group,
.mollie-key-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.hc-form-group label,
.form-group-limit label,
.payment-description-group label,
.mollie-key-group label {
    color: var(--text-strong);
    font-weight: 700;
}

.hc-input,
.hc-select,
.hc-textarea,
.form-group-limit input[type="number"],
#payment_amount,
.payment-description-group input,
.mollie-key-group input,
#mollie_mode {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    outline: none;
}

.hc-textarea {
    min-height: 150px;
    resize: vertical;
}

.hc-input:focus,
.hc-select:focus,
.hc-textarea:focus,
.form-group-limit input[type="number"]:focus,
#payment_amount:focus,
.payment-description-group input:focus,
.mollie-key-group input:focus,
#mollie_mode:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hc-form-group small,
.form-group-limit small,
.payment-description-group small,
.mollie-key-group small {
    color: var(--text-muted);
    font-size: 13px;
}

.required {
    color: var(--danger);
}

.hc-badge,
.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}


.hc-badge.success,
.payment-status.paid {
    background: var(--success-soft);
    color: var(--success);
}

.hc-badge.warning,
.payment-status.open,
.payment-status.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.hc-badge.danger,
.payment-status.failed,
.payment-status.canceled,
.payment-status.expired {
    background: var(--danger-soft);
    color: var(--danger);
}

.hc-alert,
.maintenance-status,
.mollie-mode-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.hc-alert.success {
    border-color: #bbf7d0;
    background: var(--success-soft);
    color: var(--success);
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
}

.profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px;
    text-align: center;
}

.profile-avatar-circle {
    display: grid;
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--sidebar);
    color: #fff;
    font-size: 42px;
}

.profile-role {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.form-builder,
.form-builder-v2 {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
}

.form-builder-pro {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 290px;
    gap: 22px;
    align-items: start;
}

.field-library,
.builder-panel {
    position: sticky;
    top: 92px;
    align-self: start;
}

.field-type-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-bottom: 9px;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.builder-preview-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.builder-preview-field {
    grid-column: span 12;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.builder-preview-field.width-50 {
    grid-column: span 6;
}

.builder-preview-field.width-33 {
    grid-column: span 4;
}

.builder-preview-field input,
.builder-preview-field textarea,
.builder-preview-field select {
    width: 100%;
    margin-top: 10px;
    padding: 11px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--surface);
}

.builder-preview-field textarea {
    min-height: 110px;
}

.builder-field-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.builder-field-actions {
    display: flex;
    gap: 10px;
}

.builder-field-actions a:last-child {
    color: var(--danger);
}

.builder-info-box,
.builder-condition-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.submission-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.submission-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.submission-sidebar {
    display: grid;
    gap: 20px;
}

.submission-data-item,
.submission-meta-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.submission-data-item span,
.submission-meta-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.maintenance-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.maintenance-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.maintenance-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.maintenance-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}

.maintenance-switch-slider::before {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: var(--transition);
}

.maintenance-switch input:checked + .maintenance-switch-slider {
    background: var(--accent);
}

.maintenance-switch input:checked + .maintenance-switch-slider::before {
    transform: translateX(24px);
}

.maintenance-status.active {
    border-color: #fde68a;
    background: var(--warning-soft);
    color: #92400e;
}

.maintenance-status.inactive {
    border-color: #bbf7d0;
    background: var(--success-soft);
    color: #166534;
}

.mollie-mode-status.test {
    border-color: #bfdbfe;
    background: var(--accent-soft);
    color: #1e40af;
}

.mollie-mode-status.live {
    border-color: #bbf7d0;
    background: var(--success-soft);
    color: #166534;
}

.current-photo img {
    width: 220px;
    height: 140px;
    border: 1px solid var(--border);
    border-radius: 12px;
    object-fit: cover;
}

.empty-state {
    padding: 56px 20px;
    color: var(--text-muted);
    text-align: center;
}

.hc-public-form {
    margin-top: 48px;
}

.hc-public-form-header h2 {
    color: var(--text-strong);
    font-size: 36px;
}

.hc-public-line {
    width: 72px;
    height: 4px;
    margin-bottom: 34px;
    border-radius: 999px;
    background: var(--accent);
}

.hc-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    background: #e9edf2;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 460px;
    width: min(1080px, 100%);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.login-side {
    position: relative;
    overflow: hidden;
    background: var(--sidebar);
}

.login-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2);
}

.login-side::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.1));
    content: "";
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px;
}

.login-card h1 {
    color: var(--text-strong);
    font-size: 44px;
}

.login-card p {
    margin: 10px 0 32px;
    color: var(--text-muted);
}

.login-overlay {
    position: absolute;
    z-index: 2;
    right: 46px;
    bottom: 46px;
    left: 46px;
    color: #fff;
}

@media (max-width: 1200px) {
    .admin-cards,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-builder-pro {
        grid-template-columns: 1fr;
    }

    .builder-panel {
        position: static;
    }
}

@media (max-width: 1000px) {
    .admin-page {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .admin-main {
        padding: 28px 24px 40px;
    }

    .form-builder,
    .form-builder-v2,
    .profile-layout,
    .submission-detail-layout,
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: auto;
    }

    .login-side {
        display: none;
    }
}

@media (max-width: 720px) {
    .admin-main {
        padding: 24px 18px 36px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-cards,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-table-card {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 720px;
    }

    .builder-preview-field.width-50,
    .builder-preview-field.width-33 {
        grid-column: span 12;
    }
}

/* =========================================================
   Media page layout
   ========================================================= */

.media-page {
    display: block;
    width: 100%;
}

.media-page .admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-bottom: 24px;
}

.media-page .admin-page-actions {
    flex-shrink: 0;
}

.media-page .media-toolbar {
    display: block;
    width: 100%;
    margin-bottom: 24px;
}

.media-page .media-empty-state {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
    padding: 38px;
    background: #ffffff;
    border: 1px solid #dde2e8;
    border-radius: 22px;
}

.dashboard-welcome h2 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.2;
    color: #111827;
}

.dashboard-welcome p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #4b5563;
}

.dashboard-welcome strong {
    color: #111827;
}


/* =========================================================
   DASHBOARD STATISTIEKKAARTEN
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 34px;
}


.dashboard-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-card-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

.dashboard-card-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 750;
    color: #111827;
}


/* =========================================================
   KLEURVARIANTEN DASHBOARDKAARTEN
========================================================= */

.dashboard-card-blue .dashboard-card-icon {
    color: #2563eb;
    background: #eff6ff;
}

.dashboard-card-green .dashboard-card-icon {
    color: #059669;
    background: #ecfdf5;
}

.dashboard-card-orange .dashboard-card-icon {
    color: #d97706;
    background: #fff7ed;
}


/* =========================================================
   ONDERSTE DASHBOARDKOLOMMEN
========================================================= */

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.dashboard-columns .hc-card {
    height: 100%;
}


/* =========================================================
   SNELLE ACTIES
========================================================= */

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   SYSTEEMINFORMATIE
========================================================= */

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 14px 0;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #edf0f3;
}

.dashboard-list-item:first-child {
    padding-top: 0;
}

.dashboard-list-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-list-item strong {
    font-size: 15px;
    color: #111827;
}

.dashboard-list-item span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

a.dashboard-list-item {
    margin-top: 8px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

a.dashboard-list-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

a.dashboard-list-item:hover span {
    color: #2563eb;
}


/* =========================================================
   RESPONSIVE DASHBOARD
========================================================= */

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        padding: 30px;
    }

    .dashboard-welcome h2 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-welcome {
        margin-bottom: 22px;
        padding: 24px;
        border-radius: 18px;
    }

    .dashboard-welcome h2 {
        font-size: 26px;
    }

    .dashboard-welcome p {
        font-size: 15px;
    }

    .dashboard-card {
        min-height: 132px;
        padding: 22px;
        border-radius: 18px;
    }

    .dashboard-card-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .dashboard-card-value {
        font-size: 30px;
    }

    .dashboard-card-arrow {
        right: 18px;
        top: 18px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-actions .btn,
    .quick-actions a {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   ADMIN TABELLEN
========================================================= */

.admin-table-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dde2e8;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    border-spacing: 0;
}

.admin-table thead {
    background: #f8fafc;
}

.admin-table th {
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #64748b;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f3;
}

.admin-table tbody tr {
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table td:first-child {
    font-weight: 650;
    color: #111827;
}

.admin-table code {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}


.admin-actions a,
.admin-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #64748b;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.admin-actions a:hover,
.admin-actions button:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.admin-actions a:last-child:hover,
.admin-actions button.admin-action-delete:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.admin-actions i {
    font-size: 14px;
}


/* =========================================================
   LEGE TABEL
========================================================= */

.admin-table-empty {
    padding: 48px 24px !important;
    color: #64748b !important;
    text-align: center;
}

.admin-table-empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 28px;
    color: #94a3b8;
}


/* =========================================================
   RESPONSIVE TABELLEN
========================================================= */

@media (max-width: 768px) {
    .admin-table-card {
        border-radius: 14px;
    }

    .admin-table th,
    .admin-table td {
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* =========================================================
   ADMIN FORMULIEREN
========================================================= */

.admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.admin-form-main,
.admin-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-form-sidebar {
    position: sticky;
    top: 30px;
}

.admin-form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form-actions .hc-btn {
    justify-content: center;
    width: 100%;
}


/* =========================================================
   CARD HEADERS
========================================================= */

.hc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid #edf0f3;
}

.hc-card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.hc-card-header p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
}

.hc-card-body {
    padding: 28px;
}


/* =========================================================
   FORM VELDEN
========================================================= */

.hc-card-body>.form-group,
.hc-card-body>.hc-form-group {
    margin-bottom: 24px;
}

.hc-card-body>.form-group:last-child,
.hc-card-body>.hc-form-group:last-child {
    margin-bottom: 0;
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
input[type=date],
input[type=datetime-local],
input[type=time],
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d7dde6;
    border-radius: 12px;
    transition:
        border-color .18s,
        box-shadow .18s;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}


/* =========================================================
   PUBLISH CARD
========================================================= */

.admin-setting-option {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    cursor: pointer;
}

.admin-setting-option-control {
    position: relative;
}

.admin-setting-option-control input {
    position: absolute;
    opacity: 0;
}

.admin-setting-option-switch {
    display: block;
    position: relative;
    width: 52px;
    height: 30px;
    background: #d7dde6;
    border-radius: 999px;
    transition: .2s;
}

.admin-setting-option-switch::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.admin-setting-option-control input:checked+.admin-setting-option-switch {
    background: #2563eb;
}

.admin-setting-option-control input:checked+.admin-setting-option-switch::before {
    transform: translateX(22px);
}

.admin-setting-option-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: #111827;
}

.admin-setting-option-content small {
    display: block;
    line-height: 1.5;
    color: #64748b;
}

/* =========================================================
   Settings page
   ========================================================= */

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.settings-main,
.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.settings-sidebar {
    position: sticky;
    top: 1.5rem;
}

.settings-form .hc-card {
    margin: 0;
    overflow: hidden;
}

.settings-form .hc-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.settings-form .hc-card-header h2 {
    margin: 0;
}

.settings-form .hc-card-header p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.settings-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    font-size: 1rem;
}

.settings-card-icon.blue {
    color: #1d4ed8;
    background: #dbeafe;
}

.settings-card-icon.green {
    color: #15803d;
    background: #dcfce7;
}

.settings-card-icon.purple {
    color: #7e22ce;
    background: #f3e8ff;
}

.settings-card-icon.orange {
    color: #c2410c;
    background: #ffedd5;
}

.settings-card-icon.teal {
    color: #0f766e;
    background: #ccfbf1;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

.settings-form-grid .form-group {
    margin: 0;
}

.settings-logo-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.settings-logo-preview > span {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.settings-logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 1rem;
    background:
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 18px 18px;
    background-position:
        0 0,
        0 9px,
        9px -9px,
        -9px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.settings-logo-image img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.settings-logo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    color: #94a3b8;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.settings-logo-empty i {
    margin-bottom: 0.65rem;
    font-size: 2rem;
}

.settings-logo-empty p {
    margin: 0;
}

.settings-upload-help {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}

.settings-save-bar {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.15rem;
    background: rgb(255 255 255 / 96%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgb(15 23 42 / 12%);
    backdrop-filter: blur(12px);
}

.settings-save-bar > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.settings-save-bar strong {
    color: #0f172a;
    font-size: 0.92rem;
}

.settings-save-bar span {
    color: #64748b;
    font-size: 0.82rem;
}

@media (max-width: 1100px) {
    .settings-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
    }
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-save-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .settings-save-bar .hc-btn {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .admin-form-layout {
        grid-template-columns: 1fr;
    }

    .admin-form-sidebar {
        position: static;
    }

}

/* =========================================================
   ADMIN TOPBAR
========================================================= */

.admin-topbar {
    min-height: 78px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
    border-bottom: 1px solid #e7ebf0;
}

.admin-topbar-left,
.admin-topbar-right {
    display: flex;
    align-items: center;
}

.admin-topbar-right {
    gap: 16px;
}

/* =========================================================
   THEMES
========================================================= */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.theme-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgb(15 23 42 / 6%);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgb(15 23 42 / 10%);
}

.theme-card.is-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}

.theme-card-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.theme-card-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.theme-card-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    place-items: center;
    font-size: 3rem;
    color: #94a3b8;
    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #e2e8f0
        );
}

.theme-card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: #2563eb;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgb(37 99 235 / 25%);
}

.theme-card-content {
    padding: 1.25rem;
}

.theme-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.theme-card-title-row h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.theme-card-version {
    flex: 0 0 auto;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
}

.theme-card-description {
    margin: 0.85rem 0 0;
    line-height: 1.6;
    color: #64748b;
}

.theme-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.theme-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.hc-btn.disabled,
.hc-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.admin-nav-link.is-disabled {
    cursor: not-allowed;
    opacity: .48;
    user-select: none;
}

.admin-nav-link.is-disabled:hover {
    background: transparent;
    color: inherit;
}

.admin-nav-badge {
    margin-left: auto;
    padding: .2rem .45rem;
    color: #64748b;
    background: #e2e8f0;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* =========================================================
   PAGINATITEL
========================================================= */

.admin-page-title h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
}

.admin-page-title > span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #8a94a3;
}


/* =========================================================
   WEBSITE BEKIJKEN
========================================================= */

.admin-topbar-link {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.admin-topbar-link:hover {
    color: #1d4ed8;
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.admin-topbar-link i {
    font-size: 14px;
}


/* =========================================================
   GEBRUIKERSMENU
========================================================= */

.admin-user-menu {
    position: relative;
}

.admin-user-trigger {
    min-height: 48px;
    padding: 6px 10px 6px 7px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.admin-user-trigger:hover,
.admin-user-menu.is-open .admin-user-trigger {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: #eaf2ff;
    border-radius: 10px;
}

.admin-user-avatar i {
    font-size: 15px;
}

.admin-user-details {
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.admin-user-details strong {
    max-width: 150px;
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-details small {
    margin-top: 2px;
    color: #8792a2;
    font-size: 12px;
    line-height: 1.2;
}

.admin-user-trigger > .fa-chevron-down {
    margin-left: 3px;
    color: #94a3b8;
    font-size: 11px;
    transition: transform 0.18s ease;
}

.admin-user-menu.is-open .admin-user-trigger > .fa-chevron-down {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN
========================================================= */

.admin-user-dropdown {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    padding: 7px;
    visibility: hidden;
    opacity: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    transform: translateY(-6px);
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.admin-user-menu.is-open .admin-user-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.admin-user-dropdown a {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.admin-user-dropdown a:hover {
    color: #1d4ed8;
    background: #f1f5f9;
}

.admin-user-dropdown a i {
    width: 18px;
    color: #64748b;
    text-align: center;
}

.admin-user-dropdown a:last-child {
    margin-top: 5px;
    color: #b42318;
    border-top: 1px solid #edf0f3;
    border-radius: 0 0 8px 8px;
}

.admin-user-dropdown a:last-child:hover {
    color: #b42318;
    background: #fff1f0;
}

.admin-user-dropdown a:last-child i {
    color: inherit;
}


/* =========================================================
   RESPONSIVE TOPBAR
========================================================= */

@media (max-width: 800px) {
    .admin-topbar {
        min-height: 68px;
        padding: 0 20px;
    }

    .admin-topbar-link {
        width: 40px;
        padding: 0;
    }

    .admin-topbar-link {
        font-size: 0;
    }

    .admin-topbar-link i {
        font-size: 14px;
    }

    .admin-user-details {
        display: none;
    }

    .admin-user-trigger {
        padding-right: 8px;
    }
}

@media (max-width: 520px) {
    .admin-page-title > span {
        display: none;
    }

    .admin-page-title h1 {
        font-size: 18px;
    }

    .admin-topbar {
        padding: 0 14px;
    }

    .admin-topbar-right {
        gap: 6px;
    }
}

/* =========================================================
   BUTTONS
========================================================= */

.hc-btn {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.hc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.hc-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.hc-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.hc-btn i {
    font-size: 14px;
}

.hc-btn span {
    display: inline-block;
}


/* Primary */

.hc-btn.primary {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
}

.hc-btn.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}


/* Light / secondary */

.hc-btn.light,
.hc-btn.secondary {
    color: #475569;
    background: #ffffff;
    border-color: #dbe2ea;
}

.hc-btn.light:hover,
.hc-btn.secondary:hover {
    color: #1d4ed8;
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* Success */

.hc-btn.success {
    color: #ffffff;
    background: #15803d;
    border-color: #15803d;
}

.hc-btn.success:hover {
    background: #166534;
    border-color: #166534;
}


/* Warning */

.hc-btn.warning {
    color: #7c2d12;
    background: #ffedd5;
    border-color: #fed7aa;
}

.hc-btn.warning:hover {
    background: #fed7aa;
    border-color: #fdba74;
}


/* Danger */

.hc-btn.danger {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.hc-btn.danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}


/* Dark */

.hc-btn.dark {
    color: #ffffff;
    background: #172033;
    border-color: #172033;
}

.hc-btn.dark:hover {
    background: #0f172a;
    border-color: #0f172a;
}


/* Alleen icoon */

.hc-btn.icon {
    width: 42px;
    padding: 0;
}


/* Kleine knop */

.hc-btn.small {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 13px;
}


/* Grote knop */

.hc-btn.large {
    min-height: 48px;
    padding: 0 20px;
    font-size: 15px;
}


/* Uitgeschakeld */

.hc-btn:disabled,
.hc-btn.disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   BADGES
========================================================= */

.hc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}


/* Default */

.hc-badge.default {
    color: #475569;
    background: #f1f5f9;
}


/* Primary */

.hc-badge.primary {
    color: #1d4ed8;
    background: #dbeafe;
}


/* Success */

.hc-badge.success {
    color: #166534;
    background: #dcfce7;
}


/* Warning */

.hc-badge.warning {
    color: #92400e;
    background: #fef3c7;
}


/* Danger */

.hc-badge.danger {
    color: #991b1b;
    background: #fee2e2;
}


/* Info */

.hc-badge.info {
    color: #0369a1;
    background: #e0f2fe;
}

/* =========================================================
   TABLE SEARCH
========================================================= */

.admin-header-actions{
    display:flex;
    align-items:center;
    gap:16px;
}

.admin-search{
    position:relative;
}

.admin-search i{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    font-size:14px;
}

.admin-search input{
    width:280px;
    height:42px;
    padding:0 16px 0 42px;
    border:1px solid #dbe2ea;
    border-radius:10px;
    background:#fff;
    transition:.2s;
}

.admin-search input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.08);
}

@media(max-width:900px){

    .admin-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .admin-header-actions{
        width:100%;
        flex-direction:column;
        align-items:stretch;
    }

    .admin-search{
        width:100%;
    }

    .admin-search input{
        width:100%;
    }

}

/* =========================================================
   DATATABLE
========================================================= */

.admin-datatable {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* =========================================================
   DATATABLE TOOLBAR
========================================================= */

.admin-datatable-toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-datatable-search {
    position: relative;
    width: min(100%, 360px);
}

.admin-datatable-search i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
}

.admin-datatable-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 43px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    font-size: 14px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.admin-datatable-search input::placeholder {
    color: #94a3b8;
}

.admin-datatable-search input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.admin-datatable-count {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   LEGE STATUS
========================================================= */

.admin-datatable-empty {
    min-height: 280px;
    padding: 50px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
}

.admin-datatable-empty[hidden] {
    display: none;
}

.admin-datatable-empty i {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 16px;
    font-size: 23px;
}

.admin-datatable-empty strong {
    margin-bottom: 7px;
    color: #172033;
    font-size: 16px;
    font-weight: 700;
}

.admin-datatable-empty span {
    max-width: 430px;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   RIJEN VERBERGEN BIJ ZOEKEN
========================================================= */

.admin-table tbody tr.is-hidden {
    display: none;
}


/* =========================================================
   RESPONSIVE DATATABLE
========================================================= */

@media (max-width: 700px) {
    .admin-datatable-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-datatable-search {
        width: 100%;
    }

    .admin-datatable-count {
        padding-left: 2px;
    }
}

/* =========================================================
   DATATABLE SORTING
========================================================= */

.admin-table th.is-sortable {
    cursor: pointer;
    user-select: none;
    transition: background .18s ease;
}

.admin-table th.is-sortable:hover {
    background: #f8fafc;
}

.admin-sort-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-sort-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: #94a3b8;
    font-size: 12px;
    transition: color .18s ease;
}

.admin-table th.is-sortable:hover .admin-sort-icon {
    color: #2563eb;
}

.admin-table th.sort-asc .admin-sort-icon i::before {
    content: "\f0de"; /* fa-sort-up */
}

.admin-table th.sort-desc .admin-sort-icon i::before {
    content: "\f0dd"; /* fa-sort-down */
}

.admin-table th.sort-asc,
.admin-table th.sort-desc {
    color: #2563eb;
}

/* =========================================================
   STAT CARDS
========================================================= */

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 22px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    text-decoration: none;
    color: inherit;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(15,23,42,.08);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;

    border-radius: 14px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;
}

.admin-stat-icon.primary{
    background:#dbeafe;
    color:#2563eb;
}

.admin-stat-icon.success{
    background:#dcfce7;
    color:#16a34a;
}

.admin-stat-icon.warning{
    background:#fef3c7;
    color:#d97706;
}

.admin-stat-icon.danger{
    background:#fee2e2;
    color:#dc2626;
}

.admin-stat-value{
    font-size:28px;
    font-weight:700;
    color:#0f172a;
}

.admin-stat-title{
    margin-top:4px;
    color:#64748b;
    font-size:14px;
}

/* =========================================================
   DASHBOARD STAT CARDS - INTERACTIE
========================================================= */

.dashboard-card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.dashboard-card-icon {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-card:hover .dashboard-card-icon {
    transform: scale(1.06);
}

.dashboard-card-arrow {
    transition:
        transform 0.18s ease,
        color 0.18s ease;
}

.dashboard-card:hover .dashboard-card-arrow {
    transform: translateX(4px);
    color: #2563eb;
}

.dashboard-card:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 14px 32px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   PAGINA OVERZICHT
========================================================= */

.admin-table-title {
    color: #0f172a;
    font-weight: 650;
}

.admin-table-code {
    display: inline-flex;
    padding: 5px 9px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-action-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.admin-action-button:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.admin-action-button.danger:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

/* ==========================================================
   ADMIN FORM COMPONENTS
========================================================== */

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.admin-form-group:last-child {
    margin-bottom: 0;
}

.admin-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.admin-label .required {
    color: #dc2626;
}

/* ----------------------------------------------------------
   Input, textarea en select
---------------------------------------------------------- */

.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.admin-input,
.admin-select {
    min-height: 44px;
    padding: 10px 12px;
}

.admin-textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.admin-inline-form {
    display: inline;
}

.builder-preview-field {
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.builder-preview-field.is-selected {

    border: 2px solid #3b82f6;

    box-shadow:
        0 0 0 4px rgba(59,130,246,.15);

    transform: translateY(-2px);

}

.builder-field-drag{
    cursor:grab;
    color:#9ca3af;
    margin-bottom:12px;
    font-size:15px;
    user-select:none;
}

.builder-field-drag:hover{
    color:#3b82f6;
}

.builder-preview-field{
    transition:
        transform .15s,
        box-shadow .15s,
        border-color .15s;
}

.builder-preview-field.dragging{
    opacity:.55;
}

.builder-preview-field.drag-over{
    border:2px dashed #3b82f6;
}

.builder-save-status {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition:
        opacity .2s,
        transform .2s;
}

.builder-save-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.builder-save-status.is-error {
    background: #b91c1c;
}

/* ----------------------------------------------------------
   Placeholder
---------------------------------------------------------- */

.admin-input::placeholder,
.admin-textarea::placeholder {
    color: #9ca3af;
}

/* ----------------------------------------------------------
   Focus
---------------------------------------------------------- */

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ----------------------------------------------------------
   Foutstatus
---------------------------------------------------------- */

.admin-input.has-error,
.admin-textarea.has-error,
.admin-select.has-error {
    border-color: #dc2626;
    background: #fffafa;
}

.admin-input.has-error:focus,
.admin-textarea.has-error:focus,
.admin-select.has-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ----------------------------------------------------------
   Helptekst en foutmelding
---------------------------------------------------------- */

.admin-help,
.admin-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.admin-help {
    color: #6b7280;
}

.admin-error {
    color: #dc2626;
    font-weight: 500;
}

/* ----------------------------------------------------------
   Select
---------------------------------------------------------- */

.admin-select {
    appearance: none;
    cursor: pointer;
    padding-right: 42px;

    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 13px) 18px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

/* ----------------------------------------------------------
   Disabled
---------------------------------------------------------- */

.admin-input:disabled,
.admin-textarea:disabled,
.admin-select:disabled {
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
    opacity: 1;
}

/* ----------------------------------------------------------
   CKEditor
---------------------------------------------------------- */

.admin-form-group .ck-editor {
    width: 100%;
}

.admin-form-group .ck.ck-toolbar {
    border-color: #d1d5db;
    border-radius: 8px 8px 0 0;
}

.admin-form-group .ck.ck-editor__main > .ck-editor__editable {
    min-height: 280px;
    border-color: #d1d5db;
    border-radius: 0 0 8px 8px;
}

.admin-form-group .ck.ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ==========================================================
   CORECMS MODAL
========================================================== */

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 480px;

    padding: 28px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.2);

    transform: translateY(10px) scale(0.98);
    opacity: 0;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.admin-modal.is-open .admin-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.admin-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 8px;

    cursor: pointer;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.admin-modal__close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.admin-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    color: #dc2626;
    background: #fee2e2;
    border-radius: 12px;

    font-size: 20px;
}

.admin-modal__content {
    padding-right: 36px;
}

.admin-modal__title {
    margin: 0 0 8px;

    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.admin-modal__message {
    margin: 0;

    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.admin-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 28px;
}

@media (max-width: 560px) {
    .admin-modal {
        padding: 16px;
    }

    .admin-modal__dialog {
        padding: 22px;
        border-radius: 14px;
    }

    .admin-modal__actions {
        flex-direction: column-reverse;
    }

    .admin-modal__actions .admin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   Menu manager
   ========================================================= */

.menu-manager {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-manager-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.menu-card-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(320px, 1fr)
    );
    gap: 1.25rem;
}

.menu-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgb(15 23 42 / 5%);
    overflow: hidden;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px rgb(15 23 42 / 8%);
}

.menu-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
}

.menu-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 13px;
    font-size: 1.15rem;
}

.menu-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.menu-card-heading h2 {
    margin: 0;
    min-width: 0;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.menu-location-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 28px;
    padding: .35rem .65rem;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.menu-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    padding: 0 1.25rem 1.25rem;
}

.menu-card-stat {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

.menu-card-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.menu-card-stat > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.menu-card-stat-label {
    color: #64748b;
    font-size: .875rem;
}

.menu-card-stat strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.menu-card-description {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.6;
}

.menu-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.menu-card-actions .button {
    justify-content: center;
    min-height: 42px;
}

.menu-card-actions .button-primary {
    grid-column: 1 / -1;
}

.menu-card-actions .button-danger {
    color: #dc2626;
    background: #fff7f7;
    border-color: #fecaca;
}

.menu-card-actions .button-danger:hover {
    background: #fee2e2;
}

.menu-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    padding: 3rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.menu-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 18px;
    font-size: 1.4rem;
}

.menu-empty-state h2 {
    margin: 0 0 .5rem;
    color: #0f172a;
    font-size: 1.25rem;
}

.menu-empty-state p {
    max-width: 420px;
    margin: 0 0 1.5rem;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .menu-manager-header {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-manager-header .button {
        align-self: flex-start;
    }

    .menu-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .menu-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-card-actions {
        grid-template-columns: 1fr;
    }

    .menu-card-actions .button-primary {
        grid-column: auto;
    }
}

/* =========================================================
   Menu builder
   ========================================================= */

.menu-builder {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.menu-builder-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
    color: #64748b;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.menu-builder-back:hover {
    color: #2563eb;
}

.menu-builder-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

.menu-builder-panel,
.menu-builder-help {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgb(15 23 42 / 5%);
}

.menu-builder-panel {
    min-width: 0;
    overflow: hidden;
}

.menu-builder-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.menu-builder-panel-header h2 {
    margin: 0 0 .25rem;
    color: #0f172a;
    font-size: 1.1rem;
}

.menu-builder-panel-header p {
    margin: 0;
    color: #64748b;
    font-size: .875rem;
}

.menu-builder-count {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: .35rem .75rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.menu-item-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem;
    background: #f8fafc;
}

.menu-item-node {
    min-width: 0;
    margin-left: calc(var(--menu-level) * 28px);
}

.menu-item-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    padding: .9rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(15 23 42 / 3%);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.menu-item-card:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgb(15 23 42 / 7%);
}

.menu-item-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    color: #94a3b8;
    cursor: grab;
}

.menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 10px;
}

.menu-item-main {
    flex: 1;
    min-width: 0;
}

.menu-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.menu-item-heading h3 {
    margin: 0;
    min-width: 0;
    color: #0f172a;
    font-size: .975rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-item-badges {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .5rem;
}

.menu-item-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: .25rem .55rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.menu-item-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 25px;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.menu-item-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.menu-item-status.is-active {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.menu-item-status.is-active > span {
    background: #22c55e;
}

.menu-item-status.is-inactive {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.menu-item-status.is-inactive > span {
    background: #94a3b8;
}

.menu-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: .45rem;
    color: #64748b;
    font-size: .78rem;
}

.menu-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.menu-item-meta span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-item-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .4rem;
}

.menu-item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    text-decoration: none;
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.menu-item-action:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.menu-item-action.is-danger:hover {
    color: #dc2626;
    background: #fff1f2;
    border-color: #fecdd3;
}

.menu-item-children {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .75rem;
}

.menu-builder-help {
    position: sticky;
    top: 1.5rem;
    padding: 1.4rem;
}

.menu-builder-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 12px;
}

.menu-builder-help h2 {
    margin: 0 0 .5rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.menu-builder-help p {
    margin: 0;
    color: #64748b;
    font-size: .875rem;
    line-height: 1.6;
}

.menu-builder-example {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.menu-builder-example span {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #334155;
    font-size: .82rem;
    font-weight: 600;
}

.menu-builder-example .is-child {
    padding-left: 1.25rem;
    color: #64748b;
}

.menu-builder-help-note {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: .78rem !important;
}

.menu-builder-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    padding: 3rem 1.5rem;
    text-align: center;
    background: #f8fafc;
}

.menu-builder-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.1rem;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 17px;
    font-size: 1.35rem;
}

.menu-builder-empty h2 {
    margin: 0 0 .5rem;
    color: #0f172a;
    font-size: 1.2rem;
}

.menu-builder-empty p {
    margin: 0 0 1.4rem;
    color: #64748b;
}

@media (max-width: 1000px) {
    .menu-builder-workspace {
        grid-template-columns: 1fr;
    }

    .menu-builder-help {
        position: static;
    }
}

@media (max-width: 700px) {
    .menu-builder-header {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-builder-header .button {
        align-self: flex-start;
    }

    .menu-builder-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-item-node {
        margin-left: calc(var(--menu-level) * 14px);
    }

    .menu-item-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }

    .menu-item-card {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .menu-item-icon {
        display: none;
    }

    .menu-item-badges {
        flex-wrap: wrap;
    }

    .menu-item-actions {
        flex-direction: column;
    }
}

/* =========================================================
   Menu builder drag and drop
   ========================================================= */

.menu-item-node[draggable="true"] {
    cursor: grab;
}

.menu-item-node[draggable="true"]:active {
    cursor: grabbing;
}

.menu-item-node.is-dragging {
    opacity: .45;
}

.menu-item-node.is-dragging .menu-item-card {
    border-color: #93c5fd;
    box-shadow: 0 12px 30px rgb(37 99 235 / 14%);
}

.menu-item-node.is-drag-over > .menu-item-card {
    border-color: #2563eb;
}

.menu-item-node.is-drag-over > .menu-item-card::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 999px;
}

.menu-item-card {
    position: relative;
}

.menu-item-drag-handle {
    cursor: grab;
}

.menu-sort-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 1.25rem 1.25rem;
    padding: .7rem .9rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
}

.menu-sort-status[hidden] {
    display: none !important;
}

.menu-sort-status.is-saving {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.menu-sort-status.is-success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.menu-sort-status.is-error {
    color: #b91c1c;
    background: #fff1f2;
    border-color: #fecdd3;
}

.menu-item-children{
    margin-left:42px;
    padding-left:18px;
    border-left:2px dashed #dbe4f0;
    min-height:6px;
}

.menu-item-node.is-dragging {
    opacity: .45;
    pointer-events: none;
}

.menu-item-children.drag-over{
    border-left:2px solid #2563eb;
    background:#eff6ff;
    border-radius:8px;
}

.admin-input-error {
    margin-top: .4rem;
    color: #dc2626;
    font-size: .85rem;
    font-weight: 500;
}

.admin-input-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

/* =========================================================
   Modules page
   ========================================================= */

.module-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

.module-page-eyebrow {
    display: inline-block;
    margin-bottom: .4rem;
    color: #2563eb;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.module-page-header h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.module-page-header p {
    margin: .75rem 0 0;
    color: #64748b;
    font-size: 1rem;
}

.module-page-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 110px;
    padding: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
}

.module-page-summary-number {
    color: #1d4ed8;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.module-page-summary-label {
    margin-top: .35rem;
    color: #475569;
    font-size: .85rem;
    font-weight: 600;
}

/* Grid */

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Card */

.module-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 32px rgb(15 23 42 / 10%);
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
}

.module-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 14px;
    font-size: 1.2rem;
}

.module-card-icon-blue {
    color: #1d4ed8;
    background: #dbeafe;
}

.module-card-icon-green {
    color: #15803d;
    background: #dcfce7;
}

.module-card-icon-purple {
    color: #7e22ce;
    background: #f3e8ff;
}

.module-card-icon-orange {
    color: #c2410c;
    background: #ffedd5;
}

.module-card-icon-red {
    color: #b91c1c;
    background: #fee2e2;
}

.module-card-icon-pink {
    color: #be185d;
    background: #fce7f3;
}

.module-card-icon-teal {
    color: #0f766e;
    background: #ccfbf1;
}

/* Status */

.module-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.module-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.module-status-active {
    color: #166534;
    background: #dcfce7;
}

.module-status-active .module-status-dot {
    background: #22c55e;
}

.module-status-inactive {
    color: #92400e;
    background: #fef3c7;
}

.module-status-inactive .module-status-dot {
    background: #f59e0b;
}

/* Content */

.module-card-content {
    flex: 1;
    padding: 1.25rem;
}

.module-card-content h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
}

.module-card-content p {
    margin: .7rem 0 0;
    color: #64748b;
    line-height: 1.6;
}

/* Meta */

.module-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.module-meta-item {
    min-width: 0;
}

.module-meta-item span {
    display: block;
    margin-bottom: .25rem;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.module-meta-item strong {
    display: block;
    overflow: hidden;
    color: #334155;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer */

.module-card-footer {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 1.25rem;
}

.module-card-footer .btn {
    width: 100%;
    justify-content: center;
}

.module-no-admin {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #94a3b8;
    font-size: .9rem;
}


.module-status-disabled {
    background: #f1f5f9;
    color: #64748b;
}

.module-status-disabled .module-status-dot {
    background: #94a3b8;
}

.module-card-disabled {
    opacity: 0.82;
}

.module-card-disabled .module-card-icon {
    filter: grayscale(0.45);
}

.module-card-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.module-card-actions .btn {
    width: auto;
    white-space: nowrap;
}

.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
}

@media (max-width: 640px) {
    .module-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .module-card-actions .btn {
        width: 100%;
    }
}

/* Empty state */

.module-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.module-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 18px;
    font-size: 1.5rem;
}

.module-empty-state h2 {
    margin: 0;
    color: #0f172a;
}

.module-empty-state p {
    margin: .75rem 0 0;
    color: #64748b;
}

/* Responsive */

@media (max-width: 700px) {
    .module-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .module-page-summary {
        flex-direction: row;
        justify-content: flex-start;
        gap: .5rem;
        width: 100%;
        min-width: 0;
        min-height: auto;
    }

    .module-page-summary-label {
        margin-top: 0;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Page builder
   ========================================================= */

.page-builder {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    background: transparent;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
}

.page-builder__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-builder__header > div {
    max-width: 560px;
}

.page-builder__header h2 {
    margin: 0;
    color: #172033;
    font-size: 1rem;
}

.page-builder__header p {
    margin: .3rem 0 0;
    color: #64748b;
    font-size: .72rem;
}

.page-builder__empty {
    min-height: 150px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #64748b;
    text-align: center;
    background: #fafbfc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.page-builder__empty > i {
    margin-bottom: .6rem;
    color: #2563eb;
    font-size: 1.5rem;
}

.page-builder__empty strong {
    font-size: .85rem;
}

.page-builder__empty p {
    margin: .25rem 0 0;
    font-size: .68rem;
}

@media (max-width: 700px) {
    .page-builder__header {
        flex-direction: column;
    }

    .page-builder__header .admin-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .page-builder {
        padding: 1rem;
    }

    .page-builder-block {
        grid-template-columns:
            34px
            42px
            minmax(0, 1fr);
    }

    .page-builder-block__actions {
        grid-column: 2 / -1;
        justify-content: flex-end;
    }
}

.page-builder__add {
    display: flex;
    align-items: stretch;
    gap: .55rem;
}

.page-builder__add select {
    min-width: 170px;
    min-height: 42px;
    padding: .55rem .75rem;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: .74rem;
    font-weight: 700;
}

.page-builder__add select:focus {
    border-color: #2563eb;
    outline: 3px solid rgb(37 99 235 / 12%);
}

@media (max-width: 700px) {
    .page-builder__add {
        width: 100%;
        flex-direction: column;
    }

    .page-builder__add select,
    .page-builder__add .admin-btn {
        width: 100%;
    }
}

/* =========================================================
   Page builder workspace
   ========================================================= */

.page-builder-workspace {
    display: grid;
    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(320px, .7fr);
    gap: 1.25rem;
    align-items: start;
}

.page-builder-editor {
    min-width: 0;
}

.page-builder-preview {
    position: sticky;
    top: 1.5rem;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

.page-builder-preview__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-builder-preview__eyebrow {
    display: block;
    margin-bottom: .15rem;
    color: #2563eb;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-builder-preview__toolbar strong {
    display: block;
    color: #172033;
    font-size: .74rem;
}

.page-builder-preview__device {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .55rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
}

.page-builder-preview__viewport {
    padding: .8rem;
    background: #f1f5f9;
}

.page-builder-preview__page {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.page-builder-preview__page-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #eef2f7;
}

.page-builder-preview__page-header > span {
    display: block;
    margin-bottom: .4rem;
    color: #2563eb;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-builder-preview__page-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.75rem;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.page-builder-preview__content {
    padding: 1rem 1.25rem;
    color: #64748b;
    font-size: .72rem;
    line-height: 1.65;
    border-bottom: 1px solid #eef2f7;
}

.page-builder-preview__blocks {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
}

.page-builder-preview__empty {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .45rem;
    padding: 1rem;
    color: #94a3b8;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: .68rem;
}

.page-builder-preview__empty i {
    color: #2563eb;
    font-size: 1rem;
}

/* builder links meer ruimte geven */

.page-builder-editor .hc-card-body {
    padding: 1.4rem;
}

.page-builder {
    margin-top: 1.25rem;
}

.page-editor-publication {
    margin-top: 1.25rem;
}

/* responsive */

@media (max-width: 1200px) {
    .page-builder-workspace {
        grid-template-columns: 1fr;
    }

    .page-builder-preview {
        position: static;
    }
}

/* =========================================================
   PAGE BUILDER - DEFINITIEVE BLOKSTYLING
========================================================= */

.page-builder__blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.page-builder__blocks > .page-builder-block {
    display: grid;
    grid-template-columns:
        36px
        46px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 72px;

    padding: 12px 14px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.page-builder__blocks > .page-builder-block:hover {
    border-color: #bfdbfe;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.06);

    transform: translateY(-1px);
}


/* =========================================================
   DRAG HANDLE
========================================================= */

.page-builder__blocks
.page-builder-block__handle {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #94a3b8;
    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: grab;
}

.page-builder__blocks
.page-builder-block__handle:hover {
    color: #2563eb;
    background: #eff6ff;
}

.page-builder__blocks
.page-builder-block__handle:active {
    cursor: grabbing;
}


/* =========================================================
   BLOK ICOON
========================================================= */

.page-builder__blocks
.page-builder-block__icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    background: #eff6ff;

    border-radius: 11px;

    font-size: 16px;
}


/* =========================================================
   BLOK INFORMATIE
========================================================= */

.page-builder__blocks
.page-builder-block__content {
    display: block;
    min-width: 0;
}

.page-builder__blocks
.page-builder-block__content small {
    display: block;

    margin: 0 0 3px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: .07em;
    text-transform: uppercase;
}

.page-builder__blocks
.page-builder-block__content strong {
    display: block;

    margin: 0;

    overflow: hidden;

    color: #172033;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   BLOK ACTIES
========================================================= */

.page-builder__blocks
.page-builder-block__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;
}

.page-builder__blocks
.page-builder-block__actions
.hc-action-button {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    padding: 0;

    color: #64748b;
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.page-builder__blocks
.page-builder-block__actions
.hc-action-button:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;

    transform: translateY(-1px);
}

.page-builder__blocks
.page-builder-block__actions
.hc-action-button.danger:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

    .page-builder__blocks > .page-builder-block {
        grid-template-columns:
            32px
            42px
            minmax(0, 1fr);
    }

    .page-builder__blocks
    .page-builder-block__icon {
        width: 42px;
        height: 42px;
    }

    .page-builder__blocks
    .page-builder-block__actions {
        grid-column: 2 / -1;
        justify-content: flex-end;
    }
}

/* =========================================================
   PAGE BUILDER - INLINE EDITOR
========================================================= */

.page-builder-block-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-builder-block-wrapper.is-editing
.page-builder-block {
    border-color: #93c5fd;
    border-radius: 12px 12px 0 0;
    box-shadow:
        0 0 0 3px rgb(37 99 235 / 8%);
}

.page-builder-block-editor {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #93c5fd;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.page-builder-block-editor[hidden] {
    display: none;
}

.page-builder-block-editor__body {
    display: grid;
    gap: 1rem;
}

.page-builder-block-editor__body
.admin-form-group {
    margin: 0;
}

.page-builder-block-editor__actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .page-builder-block-editor__actions {
        flex-direction: column-reverse;
    }

    .page-builder-block-editor__actions .hc-btn {
        width: 100%;
    }
}

/* =========================================================
   CKEDITOR
========================================================= */

.ck-editor__editable_inline {
    min-height: 420px;
}

.ck-editor__editable {
    padding: 1rem 1.25rem !important;
}

/* =========================================================
   Events formulier
   ========================================================= */

.event-option-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.event-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.event-option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.event-option input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    cursor: pointer;
}

.event-option-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 10px;
    background: #eef4ff;
    color: #2563eb;
}

.event-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.event-option-content strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.event-option-content small {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
}


/* Formulier knoppen */

.event-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 10px;
}

.event-form-actions .btn {
    width: auto;
}

/* =========================================================
   STANDHOUDERS OVERZICHT
   ========================================================= */

.standholder-stats {
    display: grid;
    grid-template-columns: repeat(
        5,
        minmax(0, 1fr)
    );
    gap: 16px;
    margin-bottom: 24px;
}

.standholder-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.standholder-stat-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex: 0 0 46px;

    border-radius: 12px;

    background: #eef4ff;
    color: #2563eb;
}

.standholder-stat-card span {
    display: block;

    margin-bottom: 3px;

    color: #64748b;
    font-size: 0.82rem;
}

.standholder-stat-card strong {
    display: block;

    color: #0f172a;
    font-size: 1.7rem;
    line-height: 1;
}

@media (max-width: 1200px) {
    .standholder-stats {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .standholder-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .standholder-stats {
        grid-template-columns: 1fr;
    }
}

.standholder-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.standholder-value.yes {
    color: #15803d;
}

.standholder-value.no {
    color: #64748b;
}

/* Standhouders - Ja / Nee waarden */
.admin-table td .standholder-value {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    text-transform: none !important;
}

.admin-table td .standholder-value.yes {
    color: #15803d !important;
}

.admin-table td .standholder-value.no {
    color: #64748b !important;
}

/* ===================================
   STANDHOUDERS - PDF KNOP
   =================================== */

.standholder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.standholder-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 42px;

    padding: 10px 16px;

    background: #f5f8ff;

    border: 1px solid #bfd0ff;
    border-radius: 10px;

    color: #2563eb;

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.standholder-pdf-btn i {
    font-size: 15px;
}

.standholder-pdf-btn:hover {
    background: #eaf1ff;

    border-color: #93afff;

    color: #1d4ed8;

    text-decoration: none;

    transform: translateY(-1px);
}

.standholder-pdf-btn:active {
    transform: translateY(0);
}


/* Mobiel */

@media (max-width: 700px) {

    .standholder-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .standholder-pdf-btn {
        width: 100%;
    }

}

/* ===================================
   SPONSOREN
   =================================== */

.sponsor-admin-logo {
    width: 110px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    overflow: hidden;
}

.sponsor-admin-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.sponsor-admin-logo-empty {
    color: #94a3b8;
    font-size: 20px;

    background: #f8fafc;
}

/* ===================================
   SPONSORS - EDIT FORM
   =================================== */

/* Logo */
.sponsor-logo-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-height: 120px;

    margin: 8px 0 16px;
    padding: 20px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.sponsor-logo-preview img {
    display: block;

    width: auto;
    max-width: 320px;
    height: auto;
    max-height: 100px;

    object-fit: contain;
}


/* ===================================
   SPONSORS - CHECKBOXES
   =================================== */

.admin-form-group .admin-checkbox {
    display: flex !important;
    align-items: center !important;

    width: fit-content;

    margin: 10px 0 !important;

    gap: 10px;

    cursor: pointer;
}

.admin-form-group .admin-checkbox input[type="checkbox"] {
    flex: 0 0 auto;

    width: 18px !important;
    height: 18px !important;

    margin: 0 !important;

    cursor: pointer;
}

.admin-form-group .admin-checkbox span {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;

    color: #1e293b !important;
}


/* Publicatie blok */
.admin-form-group > label:first-child {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #334155;
}


/* ===================================
   SPONSORS - FORM ACTIONS
   =================================== */

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 20px;
}

.admin-form-actions .btn {
    width: auto !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

/* ===================================
   SPONSORS - ACTIES
   =================================== */

.sponsor-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsor-delete-form {
    margin: 0;
}

.sponsor-action-btn {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dbe3ed;
    border-radius: 9px;

    background: #ffffff;

    color: #334155;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.sponsor-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
}

.sponsor-action-btn.danger {
    color: #dc2626;
}

.sponsor-action-btn.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* ===================================
   SPONSOREN - OVERZICHT
   =================================== */

.sponsor-admin-logo {
    width: 110px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    overflow: hidden;
}

.sponsor-admin-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.sponsor-admin-logo-empty {
    color: #94a3b8;
    font-size: 20px;

    background: #f8fafc;
}


/* Website */

.sponsor-admin-website {
    margin-top: 5px;
}

.sponsor-admin-website a {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #64748b;

    font-size: 12px;
    font-weight: 500;

    text-decoration: none;
}

.sponsor-admin-website a:hover {
    color: #2563eb;
}


/* Status */

.sponsor-status {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    font-size: 13px;
    font-weight: 600;
}

.sponsor-status.yes {
    color: #15803d;
}

.sponsor-status.no {
    color: #64748b;
}


/* Acties */

.sponsor-admin-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.sponsor-delete-form {
    margin: 0;
}

.sponsor-action-btn {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dbe3ed;
    border-radius: 9px;

    background: #fff;

    color: #334155;

    cursor: pointer;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.sponsor-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;

    color: #2563eb;
}

.sponsor-action-btn.danger {
    color: #dc2626;
}

.sponsor-action-btn.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;

    color: #b91c1c;
}

/* ===================================
   SPONSOREN - STATUS FIX
   =================================== */

.admin-table td .sponsor-status {
    display: inline-flex !important;
    align-items: center !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    text-transform: none !important;
}

.admin-table td .sponsor-status i {
    font-size: 12px !important;
}


/* Ja */

.admin-table td .sponsor-status.yes {
    color: #15803d !important;
}


/* Nee */

.admin-table td .sponsor-status.no {
    color: #64748b !important;
}

/* ===================================
   SPONSOREN - ACTIES COMPACT
   =================================== */

.sponsor-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sponsor-delete-form {
    margin: 0 !important;
    padding: 0 !important;
}

.admin-table td .sponsor-action-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dbe3ed !important;
    border-radius: 7px !important;

    background: #fff !important;
    color: #475569 !important;

    font-size: 12px !important;
    line-height: 1 !important;

    text-decoration: none !important;
    cursor: pointer;
}

.admin-table td .sponsor-action-btn i {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 12px !important;
    line-height: 1 !important;
}

.admin-table td .sponsor-action-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #2563eb !important;
}

.admin-table td .sponsor-action-btn.danger {
    color: #dc2626 !important;
}

.admin-table td .sponsor-action-btn.danger:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

/* =========================================================
   POLL ADMIN
   ========================================================= */

.poll-admin-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.poll-admin-stat {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.poll-admin-stat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;
    border-radius: 11px;

    color: #2563eb;
    font-size: 16px;
}

.poll-admin-stat span {
    display: block;
    margin-bottom: 4px;

    color: #64748b;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.poll-admin-stat strong {
    display: block;

    color: #0f172a;

    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}


/* =========================================================
   POLL RESULTAATKAARTEN
   ========================================================= */

.poll-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;

    margin-bottom: 22px;
}

.poll-admin-card {
    min-width: 0;

    padding: 24px !important;
}

.poll-admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 20px;
}

.poll-admin-card-header h2 {
    margin: 2px 0 0 !important;

    color: #0f172a !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.poll-admin-eyebrow {
    display: inline-block;

    margin: 0 !important;

    color: #64748b !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   LEGE STATUS
   ========================================================= */

.poll-admin-empty {
    min-height: 130px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 20px;

    color: #94a3b8;

    text-align: center;
}

.poll-admin-empty i {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;
    border-radius: 10px;

    color: #64748b;

    font-size: 16px !important;
}

.poll-admin-empty p {
    margin: 0 !important;

    color: #64748b !important;

    font-size: 13px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   BALKEN
   ========================================================= */

.poll-result-list,
.poll-interest-list {
    display: grid;
    gap: 16px;
}

.poll-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 7px;
}

.poll-result-heading > span {
    color: #334155;

    font-size: 13px !important;
    font-weight: 600 !important;
}

.poll-result-heading strong {
    color: #0f172a;

    font-size: 13px !important;
    font-weight: 700 !important;
}

.poll-result-heading small {
    color: #94a3b8;

    font-size: 11px !important;
    font-weight: 500 !important;
}

.poll-result-bar {
    height: 7px;

    overflow: hidden;

    background: #edf2f7;
    border-radius: 999px;
}

.poll-result-bar > span {
    display: block;

    height: 100%;

    background: #3b82f6;
    border-radius: inherit;
}


/* =========================================================
   INZENDINGEN
   ========================================================= */

.poll-admin-responses {
    margin-top: 0;
    padding: 24px !important;
}

.poll-admin-count {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    background: #f1f5f9;
    border-radius: 999px;

    color: #475569;

    font-size: 11px !important;
    font-weight: 600 !important;
}

.poll-interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.poll-interest-tags span {
    display: inline-flex;

    padding: 4px 7px;

    background: #f1f5f9;
    border-radius: 6px;

    color: #475569;

    font-size: 11px !important;
    font-weight: 600 !important;
}

.poll-attendance {
    display: inline-flex;

    padding: 4px 8px;

    background: #f1f5f9;
    border-radius: 999px;

    font-size: 11px !important;
    font-weight: 700 !important;
}

.poll-attendance-ja {
    background: #dcfce7;
    color: #15803d;
}

.poll-attendance-misschien {
    background: #fef3c7;
    color: #a16207;
}

.poll-attendance-nee {
    background: #fee2e2;
    color: #b91c1c;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .poll-admin-summary {
        grid-template-columns: 1fr;
    }

    .poll-admin-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   STANDHOUDERS - ACTIES
   ========================================================= */

.standholder-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.standholder-delete-form {
    margin: 0 !important;
    padding: 0 !important;
}

.standholder-action-btn {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #fff;

    border: 1px solid #dbe3ed;
    border-radius: 7px;

    color: #475569;

    font-size: 12px;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;
}

.standholder-action-btn i {
    margin: 0;
    font-size: 12px;
}

.standholder-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;

    color: #2563eb;
}

.standholder-action-btn.danger {
    color: #dc2626;
}

.standholder-action-btn.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;

    color: #b91c1c;
}