/* ============================================================
   BOOKING.CSS — Salon Stephanie Boekingssysteem
   Styling voor zowel de publieke boekingspagina als het admin-paneel
   ============================================================ */

/* --- Reset & Basis --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f5f3f0;
}

a {
    color: #8B6F47;
    text-decoration: none;
}
a:hover {
    color: #725a3a;
    text-decoration: underline;
}

img { max-width: 100%; }

/* --- Flash berichten --- */
.flash {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flash-info {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* --- Knoppen --- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    line-height: 1.4;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: #8B6F47;
    color: #fff;
}
.btn-primary:hover {
    background: #725a3a;
    color: #fff;
}
.btn-secondary {
    background: #e0dbd5;
    color: #555;
}
.btn-secondary:hover {
    background: #d0c9c0;
    color: #333;
}
.btn-danger {
    background: #c0392b;
    color: #fff;
}
.btn-danger:hover {
    background: #a93226;
    color: #fff;
}
.btn-warning {
    background: #e67e22;
    color: #fff;
}
.btn-warning:hover {
    background: #d35400;
    color: #fff;
}
.btn-success {
    background: #27ae60;
    color: #fff;
}
.btn-success:hover {
    background: #219a52;
    color: #fff;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

/* --- Formulieren --- */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B6F47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.15);
}
.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 180px;
}
.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.form-section {
    margin-bottom: 32px;
}
.form-section h2 {
    font-size: 18px;
    color: #8B6F47;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e0d8;
}

/* --- Cards --- */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
}
.card h2 {
    font-size: 18px;
    color: #8B6F47;
    margin-bottom: 16px;
}

/* --- Tabellen --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: #faf8f5;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table tbody tr:hover {
    background: #fdfcfb;
}
.data-table .actions {
    white-space: nowrap;
}
.data-table .actions form {
    margin: 2px;
}
.row-inactive td {
    opacity: 0.5;
}
.row-cancelled td {
    opacity: 0.5;
    text-decoration: line-through;
}
.row-completed td {
    color: #888;
}
.remark-row td {
    padding: 4px 12px 10px;
    font-size: 13px;
    color: #888;
    border-bottom: 2px solid #eee;
}
.table-responsive {
    overflow-x: auto;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-success {
    background: #d4edda;
    color: #155724;
}
.badge-danger {
    background: #f8d7da;
    color: #721c24;
}
.badge-muted {
    background: #e9ecef;
    color: #6c757d;
}

/* --- Tekst hulpklasses --- */
.text-muted {
    color: #999;
}

/* --- Toggle label (checkbox) --- */
.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}
.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8B6F47;
}


/* ============================================================
   PUBLIEK BOEKINGSFORMULIER
   ============================================================ */

.booking-page {
    background: #f5f3f0;
}

.booking-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.booking-header {
    text-align: center;
    padding: 30px 0 20px;
}
.booking-logo {
    font-size: 28px;
    font-weight: 700;
    color: #8B6F47;
    text-decoration: none;
    letter-spacing: 1px;
}
.booking-logo:hover {
    color: #725a3a;
    text-decoration: none;
}
.booking-header h1 {
    font-size: 22px;
    color: #333;
    margin-top: 12px;
}
.booking-header p {
    color: #777;
    font-size: 14px;
    margin-top: 6px;
}

/* Stappen indicator */
.booking-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #e8e0d8;
    border-radius: 25px;
    font-size: 13px;
    color: #999;
    transition: all 0.3s;
}
.step.active {
    background: #8B6F47;
    color: #fff;
}
.step-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    font-weight: 700;
    font-size: 12px;
}
.step.active .step-num {
    background: rgba(255,255,255,0.3);
}

/* Boekingsformulier */
.booking-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 30px;
}

/* Dienst selectie */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.service-option:hover {
    border-color: #d0c4b5;
    background: #fdfcfb;
}
.service-option.selected,
.service-option:has(input:checked) {
    border-color: #8B6F47;
    background: #faf6f1;
}
.service-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #8B6F47;
    flex-shrink: 0;
}
.service-info {
    flex: 1;
}
.service-name {
    display: block;
    font-size: 15px;
    color: #333;
}
.service-meta {
    font-size: 12px;
    color: #999;
}
.service-price {
    font-size: 16px;
    font-weight: 700;
    color: #8B6F47;
    white-space: nowrap;
}

/* Openingsuren info */
.opening-hours-info {
    margin-top: 20px;
    padding: 16px;
    background: #faf8f5;
    border-radius: 6px;
}
.opening-hours-info h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.opening-hours-info ul {
    list-style: none;
}
.opening-hours-info li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0ece8;
}
.opening-hours-info li:last-child {
    border-bottom: none;
}
.day-name {
    font-weight: 600;
    color: #555;
}
.day-hours {
    color: #27ae60;
}
.day-closed {
    color: #c0392b;
    font-style: italic;
}

/* Samenvattingsbalk */
.booking-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #faf6f1;
    border: 1px solid #e8ddd0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
}
.booking-summary-bar span {
    padding-right: 16px;
    border-right: 1px solid #e0d8cc;
}
.booking-summary-bar span:last-child {
    border-right: none;
    padding-right: 0;
}

/* Tijdsloten */
.timeslots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.timeslot-option {
    display: inline-block;
    cursor: pointer;
}
.timeslot-option input[type="radio"] {
    display: none;
}
.timeslot-option span {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #e0dbd5;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    min-width: 70px;
    text-align: center;
}
.timeslot-option:hover span {
    border-color: #8B6F47;
    color: #8B6F47;
}
.timeslot-option input:checked + span {
    background: #8B6F47;
    border-color: #8B6F47;
    color: #fff;
}

/* Bedankt pagina */
.success-container {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.success-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #d4edda;
    color: #27ae60;
    font-size: 36px;
    margin-bottom: 16px;
}
.success-container h1 {
    font-size: 24px;
    color: #155724;
    margin-bottom: 8px;
}
.success-container p {
    color: #666;
    font-size: 14px;
}

/* Boeking details */
.booking-details {
    font-size: 14px;
}
.booking-details p {
    margin-bottom: 6px;
}
.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0ece8;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-weight: 600;
    color: #666;
    width: 120px;
    flex-shrink: 0;
}
.detail-value {
    color: #333;
}

/* Info box */
.info-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
}
.info-box p {
    margin-bottom: 4px;
}
.info-box p:last-child {
    margin-bottom: 0;
}

/* Footer */
.booking-footer {
    text-align: center;
    padding: 30px 0 20px;
    font-size: 13px;
    color: #999;
}
.booking-footer a {
    color: #8B6F47;
}

/* --- Inline form (admin filters) --- */
.inline-form .form-row {
    align-items: flex-end;
}

/* ============================================================
   LOGIN PAGINA
   ============================================================ */

.login-page {
    background: #f5f3f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-container {
    width: 90%;
    max-width: 400px;
}
.login-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}
.login-box h1 {
    color: #8B6F47;
    font-size: 24px;
    text-align: center;
    margin-bottom: 4px;
}
.login-box h2 {
    color: #999;
    font-size: 14px;
    text-align: center;
    font-weight: 400;
    margin-bottom: 28px;
}
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}


/* ============================================================
   ADMIN PANEEL
   ============================================================ */

.admin-page {
    background: #f0eeeb;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.admin-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-logo h2 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 2px;
}
.admin-logo span {
    font-size: 12px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-nav {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}
.admin-nav li a {
    display: block;
    padding: 12px 24px;
    color: #bdc3c7;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-nav li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
}
.admin-nav li.active a {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: #8B6F47;
}

.admin-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #95a5a6;
}
.admin-user span {
    display: block;
    margin-bottom: 8px;
}
.btn-logout {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}
.btn-logout:hover {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    text-decoration: none;
}

/* Content */
.admin-content {
    flex: 1;
    overflow: auto;
    min-width: 0;
}

/* Hidden on desktop */
.admin-hamburger {
    display: none;
}
.admin-overlay {
    display: none;
}
.admin-topbar {
    background: #fff;
    padding: 20px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-topbar h1 {
    font-size: 22px;
    color: #333;
}
.admin-body {
    padding: 24px 30px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 24px;
    text-align: center;
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #8B6F47;
}
.stat-label {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Quick links */
.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Openingsuren tabel */
.openingsuren-table input[type="time"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 120px;
}
.openingsuren-table input[type="time"]:focus {
    outline: none;
    border-color: #8B6F47;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    /* Hamburger button */
    .admin-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 1100;
        width: 42px;
        height: 42px;
        padding: 9px;
        background: #2c3e50;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .admin-hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ecf0f1;
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .admin-hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .admin-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .admin-hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Overlay */
    .admin-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .admin-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Sidebar: off-canvas drawer */
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 270px;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-logo {
        padding: 20px 20px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-right: none;
    }
    .admin-logo h2 {
        font-size: 17px;
    }
    .admin-logo span {
        display: block;
    }
    .admin-nav {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        overflow-x: visible;
        flex: 1;
    }
    .admin-nav li a {
        padding: 12px 24px;
        white-space: normal;
        font-size: 14px;
        border-left: 3px solid transparent;
        border-bottom: none;
    }
    .admin-nav li.active a {
        border-left-color: #8B6F47;
        border-bottom-color: transparent;
    }
    .admin-user {
        padding: 16px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: block;
    }
    .admin-user span {
        display: block;
        margin-bottom: 8px;
    }

    /* Content area adjustments */
    .admin-topbar {
        padding: 14px 16px 14px 60px;
    }
    .admin-topbar h1 {
        font-size: 18px;
    }
    .admin-body {
        padding: 16px;
    }
    .admin-content {
        width: 100%;
    }

    /* Cards */
    .card {
        padding: 16px;
    }

    /* Booking form */
    .booking-steps {
        gap: 6px;
    }
    .step {
        padding: 8px 12px;
        font-size: 12px;
    }
    .step-label {
        display: none;
    }
    .booking-form {
        padding: 20px;
    }
    .booking-summary-bar {
        flex-direction: column;
        gap: 6px;
    }
    .booking-summary-bar span {
        border-right: none;
        padding-right: 0;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Tables responsive */
    .data-table {
        font-size: 13px;
    }
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
    }
    .openingsuren-table input[type="time"] {
        width: 100px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .admin-topbar {
        padding: 12px 14px 12px 56px;
    }
    .admin-topbar h1 {
        font-size: 16px;
    }
    .admin-body {
        padding: 12px;
    }
    .card {
        padding: 14px;
        margin-bottom: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    .booking-container {
        padding: 10px;
    }
    .booking-header {
        padding: 20px 0 16px;
    }
    .booking-logo {
        font-size: 22px;
    }
    .booking-header h1 {
        font-size: 18px;
    }
    .service-option {
        padding: 10px 14px;
    }
    .timeslot-option span {
        padding: 8px 14px;
        font-size: 14px;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="time"],
    .form-group input[type="number"],
    .form-group input[type="password"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
}

/* ============================================================
   KALENDER WIDGET
   ============================================================ */

.calendar-widget {
    background: #fff;
    border: 1px solid #e0d8cf;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    max-width: 480px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-month-year {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-transform: capitalize;
}

.cal-nav {
    background: #f5f3f0;
    border: 1px solid #e0d8cf;
    color: #8B6F47;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.cal-nav:hover:not(:disabled) {
    background: #8B6F47;
    color: #fff;
}
.cal-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.calendar-grid {
    margin-bottom: 14px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}
.cal-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #8B6F47;
    text-transform: uppercase;
    padding: 4px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: default;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    padding: 0;
    min-height: 40px;
}

.cal-empty {
    background: transparent;
}

.cal-available {
    background: #d4edda;
    color: #155724;
    cursor: pointer;
}
.cal-available:hover {
    background: #28a745;
    color: #fff;
    transform: scale(1.08);
}

.cal-full {
    background: #fff3cd;
    color: #856404;
    cursor: not-allowed;
}

.cal-closed {
    background: #f0ece6;
    color: #b0a89e;
    cursor: not-allowed;
}

.cal-past {
    background: #f8f8f8;
    color: #ccc;
    cursor: not-allowed;
}

.cal-selected {
    background: #8B6F47 !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(139,111,71,0.35);
}

/* Kalender legende */
.calendar-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 4px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.legend-dot.available {
    background: #d4edda;
    border: 1px solid #28a745;
}
.legend-dot.full {
    background: #fff3cd;
    border: 1px solid #ffc107;
}
.legend-dot.closed {
    background: #f0ece6;
    border: 1px solid #d0c8be;
}

/* Laden-indicator */
.cal-loading {
    text-align: center;
    padding: 30px;
    color: #8B6F47;
    font-size: 15px;
    font-weight: 600;
}
.cal-loading::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #e0d8cf;
    border-top-color: #8B6F47;
    border-radius: 50%;
    animation: cal-spin 0.7s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}
@keyframes cal-spin {
    to { transform: rotate(360deg); }
}

.cal-error {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background: #f8d7da;
    border-radius: 6px;
    font-size: 14px;
}

/* 3-stappen indicator */
.booking-steps .step .step-label {
    white-space: nowrap;
}

/* Summary bar met wijzig-knop */
.booking-summary-bar .btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* Responsive kalender */
@media (max-width: 500px) {
    .calendar-widget {
        padding: 14px;
    }
    .cal-day {
        min-height: 34px;
        font-size: 13px;
        border-radius: 6px;
    }
    .cal-month-year {
        font-size: 16px;
    }
    .calendar-legend {
        gap: 10px;
    }
    .legend-item {
        font-size: 11px;
    }
}

/* ============================================================
   AGENDA — Admin kalender overzicht
   ============================================================ */

.agenda-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.agenda-nav {
    display: flex;
    gap: 6px;
}
.agenda-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-align: center;
    flex: 1;
    min-width: 180px;
}
.agenda-views {
    display: flex;
    gap: 4px;
}
.agenda-views .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
}

.agenda-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.agenda-stat {
    font-size: 14px;
    color: #666;
}
.agenda-stat strong {
    color: #333;
    font-size: 16px;
}

/* Gesloten / leeg berichten */
.agenda-closed-notice,
.agenda-empty-notice {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* --- DAG WEERGAVE --- */
.agenda-timeline {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.timeline-row {
    display: flex;
    border-bottom: 1px solid #f0ece6;
    min-height: 60px;
}
.timeline-row:last-child {
    border-bottom: none;
}
.timeline-time {
    width: 70px;
    flex-shrink: 0;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #8B6F47;
    background: #faf8f5;
    border-right: 2px solid #e0d8cf;
    text-align: right;
}
.timeline-slots {
    flex: 1;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.timeline-booking {
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 4px solid #8B6F47;
    background: #faf8f5;
}
.timeline-booking.status-confirmed {
    border-left-color: #28a745;
    background: #f0faf2;
}
.timeline-booking.status-cancelled {
    border-left-color: #dc3545;
    background: #fdf0f0;
    opacity: 0.6;
}
.timeline-booking.status-completed {
    border-left-color: #6c757d;
    background: #f5f5f5;
}
.tb-time {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}
.tb-client {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
}
.tb-service {
    font-size: 13px;
    color: #666;
}
.tb-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.tb-phone {
    font-size: 12px;
    color: #888;
}

/* --- WEEK WEERGAVE --- */
.agenda-week-view {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.week-day-column {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.week-day-column.week-today {
    box-shadow: 0 0 0 2px #8B6F47, 0 1px 6px rgba(139,111,71,0.2);
}
.week-day-column.week-closed {
    opacity: 0.55;
}
.week-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #faf8f5;
    border-bottom: 1px solid #f0ece6;
}
.week-day-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}
.week-day-link:hover {
    color: #8B6F47;
    text-decoration: none;
}
.week-day-name {
    font-size: 13px;
    font-weight: 700;
    color: #8B6F47;
    text-transform: uppercase;
    width: 28px;
}
.week-day-num {
    font-size: 18px;
    font-weight: 700;
}
.week-closed-label {
    font-size: 12px;
    color: #b0a89e;
    font-style: italic;
}
.week-count {
    font-size: 12px;
    color: #999;
}
.week-day-bookings {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.week-booking {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid #8B6F47;
    background: #faf8f5;
    font-size: 13px;
}
.week-booking.status-confirmed {
    border-left-color: #28a745;
    background: #f5faf6;
}
.week-booking.status-cancelled {
    border-left-color: #dc3545;
    background: #fdf5f5;
    opacity: 0.5;
    text-decoration: line-through;
}
.week-booking.status-completed {
    border-left-color: #6c757d;
    background: #f5f5f5;
}
.wb-time {
    font-weight: 700;
    color: #333;
    min-width: 44px;
}
.wb-client {
    font-weight: 600;
    color: #333;
}
.wb-service {
    color: #888;
    flex: 1;
}
.week-no-bookings {
    padding: 8px 12px;
    color: #ccc;
    font-size: 13px;
    font-style: italic;
}

/* --- MAAND WEERGAVE --- */
.month-grid {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.month-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #faf8f5;
    border-bottom: 2px solid #e0d8cf;
}
.month-weekdays span {
    text-align: center;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 700;
    color: #8B6F47;
    text-transform: uppercase;
}
.month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.month-day {
    min-height: 100px;
    border-right: 1px solid #f0ece6;
    border-bottom: 1px solid #f0ece6;
    padding: 4px 6px;
    position: relative;
}
.month-day:nth-child(7n) {
    border-right: none;
}
.month-empty {
    background: #fafafa;
}
.month-today {
    background: #fffbf0;
    box-shadow: inset 0 0 0 2px #8B6F47;
}
.month-closed-day {
    background: #f8f6f3;
}
.month-day-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
}
.month-day-num:hover {
    background: #8B6F47;
    color: #fff;
    text-decoration: none;
}
.month-closed-text {
    display: block;
    font-size: 11px;
    color: #b0a89e;
    font-style: italic;
    margin-top: 2px;
}
.month-day-bookings {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}
.month-booking {
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
    border-left: 3px solid #8B6F47;
    background: #faf8f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.month-booking.status-confirmed {
    border-left-color: #28a745;
    background: #f0faf2;
}
.month-booking.status-cancelled {
    border-left-color: #dc3545;
    opacity: 0.4;
}
.month-booking.status-completed {
    border-left-color: #6c757d;
}
.mb-time {
    font-weight: 700;
    margin-right: 4px;
}
.month-more {
    font-size: 11px;
    color: #8B6F47;
    font-weight: 600;
    cursor: pointer;
}

/* Agenda responsive */
@media (max-width: 768px) {
    .agenda-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .agenda-nav,
    .agenda-views {
        justify-content: center;
    }
    .agenda-stats {
        justify-content: center;
        gap: 12px;
    }
    .month-day {
        min-height: 60px;
        padding: 2px 3px;
    }
    .month-day-num {
        font-size: 12px;
    }
    .month-booking {
        display: none;
    }
    .month-day-bookings {
        display: none;
    }
    .month-closed-text {
        display: none;
    }
    /* Show dot indicator on mobile instead */
    .month-day::after {
        content: '';
        display: none;
    }
    .timeline-time {
        width: 55px;
        font-size: 12px;
        padding: 10px 8px;
    }
    .week-booking {
        flex-wrap: wrap;
        gap: 4px;
    }
    .wb-service {
        width: 100%;
    }
}

/* ============================================================
   ANALYTICS PAGINA
   ============================================================ */

/* Toolbar */
.analytics-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.analytics-period-label {
    font-size: 18px;
    color: #8B6F47;
    margin: 0;
}
.period-buttons {
    display: flex;
    gap: 6px;
}

/* 5-kolom stats grid */
.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}
.stat-revenue .stat-number {
    color: #2d6a4f;
}
.stat-change {
    font-size: 12px;
    font-weight: 600;
}
.stat-up {
    color: #2d6a4f;
}
.stat-down {
    color: #dc3545;
}

/* Analytics rijen */
.analytics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}
.analytics-half {
    margin-bottom: 20px;
}

/* Bar chart (maandelijkse omzet) */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 220px;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 2px solid #e8e0d8;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}
.bar-fill {
    width: 70%;
    max-width: 50px;
    background: linear-gradient(180deg, #8B6F47, #b89b72);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.4s ease;
}
.bar-value {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
}
.bar-label {
    font-size: 11px;
    color: #333;
    margin-top: 6px;
    font-weight: 600;
}
.bar-count {
    font-size: 10px;
    color: #999;
}

/* Horizontal bars (dagen/uren) */
.horizontal-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hbar-label {
    width: 80px;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}
.hbar-track {
    flex: 1;
    height: 24px;
    background: #f0ece6;
    border-radius: 4px;
    overflow: hidden;
}
.hbar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B6F47, #b89b72);
    border-radius: 4px;
    min-width: 4px;
    transition: width 0.4s ease;
}
.hbar-value {
    width: 35px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
}

/* Client donut / progress */
.client-donut {
    padding: 10px 0;
}
.donut-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}
.donut-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.donut-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}
.donut-label {
    font-size: 14px;
    flex: 1;
}
.donut-value {
    font-size: 14px;
    font-weight: 600;
}

/* Progress bar */
.progress-bar-container {
    display: flex;
    background: #f0ece6;
    border-radius: 6px;
    overflow: hidden;
    height: 20px;
}
.progress-bar-segment {
    height: 100%;
    transition: width 0.4s ease;
}

/* Status overview */
.status-overview {
    padding: 10px 0;
}
.status-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Responsive analytics */
@media (max-width: 900px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .analytics-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .bar-chart {
        height: 160px;
    }
    .bar-value {
        font-size: 9px;
    }
    .hbar-label {
        width: 60px;
        font-size: 11px;
    }
}

/* --- Wachtlijst Modal --- */
.waitlist-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.waitlist-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: wlFadeIn 0.25s ease;
}
@keyframes wlFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.waitlist-modal-content h2 {
    color: #8B6F47;
    margin-bottom: 10px;
    font-size: 22px;
}
.waitlist-modal-content p {
    margin-bottom: 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}
.waitlist-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.waitlist-close:hover { color: #333; }
.cal-day.cal-full {
    cursor: pointer;
}
.cal-day.cal-full:hover {
    opacity: 0.8;
}
