/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    min-height: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #ff8c00;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Terugbelafspraken paneel */
.terugbel-panel {
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.terugbel-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #ebf8ff 0%, #e6f6ff 100%);
    border-bottom: 1px solid #bee3f8;
    transition: background 0.2s ease;
    user-select: none;
}

.terugbel-panel-header:hover {
    background: linear-gradient(135deg, #d6efff 0%, #d0ecff 100%);
}

.terugbel-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2b6cb0;
}

.terugbel-panel-title > i {
    font-size: 1.1rem;
    color: #3182ce;
}

.terugbel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #3182ce;
    color: white;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 700;
}

.terugbel-badge.empty {
    background: #a0aec0;
}

.terugbel-chevron {
    color: #63b3ed;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.terugbel-panel.collapsed .terugbel-chevron {
    transform: rotate(-90deg);
}

.terugbel-panel-body {
    padding: 16px 20px;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.terugbel-panel.collapsed .terugbel-panel-body {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.terugbel-panel-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #555;
    font-size: 0.9rem;
}

.terugbel-panel-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff5f5;
    color: #c53030;
    border-radius: 8px;
    font-size: 0.85rem;
}

.terugbel-panel-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: #48bb78;
    font-size: 0.9rem;
}

.terugbel-panel-empty i {
    font-size: 1rem;
}

.terugbel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terugbel-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fafbfc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terugbel-item:hover {
    border-color: #63b3ed;
    box-shadow: 0 3px 12px rgba(49, 130, 206, 0.12);
    transform: translateX(3px);
}

.terugbel-item-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 12px 10px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: white;
    gap: 2px;
}

.terugbel-item-date-day {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.terugbel-item-date-month {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}

.terugbel-item-date-time {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

.terugbel-item-body {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.terugbel-item-bedrijf {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terugbel-item-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #718096;
}

.terugbel-item-details i {
    color: #a0aec0;
    width: 12px;
    text-align: center;
}

.terugbel-item-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.terugbel-item-notitie {
    font-size: 0.8rem;
    color: #718096;
    font-style: italic;
    word-break: break-word;
}

.terugbel-item-notitie i {
    color: #a0aec0;
    margin-right: 4px;
}

.terugbel-item-payroll {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.terugbel-item-payroll.payroll-ja {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.terugbel-item-payroll.payroll-nee {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.terugbel-item-payroll.payroll-onbekend {
    background: #fefcbf;
    color: #975a16;
    border: 1px solid #fefcbf;
}

.terugbel-item-arrow {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #cbd5e0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.terugbel-item:hover .terugbel-item-arrow {
    color: #3182ce;
}

.terugbel-panel-body::-webkit-scrollbar {
    width: 5px;
}

.terugbel-panel-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.terugbel-panel-body::-webkit-scrollbar-thumb {
    background: #63b3ed;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .terugbel-item {
        flex-direction: column;
    }

    .terugbel-item-date-col {
        flex-direction: row;
        min-width: auto;
        padding: 8px 14px;
        gap: 6px;
    }

    .terugbel-item-date-day {
        font-size: 1rem;
    }

    .terugbel-item-arrow {
        display: none;
    }
}

/* Page tabs */
.page-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.page-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.page-tab.active {
    background: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-tab.active i {
    color: #ff8c00;
}

.page-tab i {
    font-size: 1.1rem;
}

/* Page tab content */
.page-tab-content {
    display: none;
}

.page-tab-content.active {
    display: block;
}

/* Afspraak search section (in Bellijst tab) */
.afspraak-search {
    margin-top: 20px;
    animation: fadeInDown 0.4s ease;
}

.afspraak-location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
    border: 1px solid #f0a040;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 18px;
}

.afspraak-location-info i {
    color: #f0a040;
    font-size: 1.1rem;
}

.afspraak-location-info strong {
    color: #e67e22;
    font-size: 1.05rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Klant ophalen section */
.klant-section-wrapper {
    background: white;
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.klant-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.klant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.klant-header label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.klant-header label i {
    color: #ff8c00;
    font-size: 1.1rem;
}

.pick-klant-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff8c00 0%, #e67e00 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pick-klant-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
}

.pick-klant-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pick-klant-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.klant-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #555;
    font-size: 0.95rem;
}

.klant-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e1e5e9;
    border-top: 3px solid #ff8c00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.klant-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fee;
    color: #c53030;
    border-radius: 8px;
    border-left: 4px solid #c53030;
    font-size: 0.9rem;
}

.klant-info {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.klant-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.klant-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.klant-detail i {
    color: #ff8c00;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.klant-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    white-space: nowrap;
}

.klant-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.klant-detail-full {
    grid-column: 1 / -1;
}

.klant-detail-full .klant-value {
    font-size: 1.1rem;
}

.klant-sector-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.klant-phone-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.klant-phone-link {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    transition: color 0.2s;
}

.klant-phone-link:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.klant-phone-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.phone-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #a0aec0;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 0.75rem;
    transition: all 0.2s;
    line-height: 1;
}

.phone-copy-btn:hover {
    color: #4a5568;
    border-color: #cbd5e0;
    background: #f7fafc;
}

.phone-copy-btn.copied {
    color: #48bb78;
    border-color: #48bb78;
}

.klant-email-link {
    text-decoration: none;
    color: #2d3748;
    transition: color 0.2s;
}

.klant-email-link:hover {
    color: #ff8c00;
    text-decoration: underline;
}

/* Belactie section */
/* Klant notitie veld */
.klant-notitie-section {
    padding-top: 12px;
    margin-top: 8px;
}

.klant-notitie-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.klant-notitie-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}

.klant-notitie-group label i {
    color: #a0aec0;
}

.klant-notitie-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.klant-notitie-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: white;
}

.klant-notitie-textarea::placeholder {
    color: #a0aec0;
}

.belactie-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 16px;
}

.belactie-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.belactie-section h4 i {
    color: #ff8c00;
}

.belactie-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.belactie-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.2s ease;
}

.belactie-btn i {
    font-size: 1.2rem;
}

.belactie-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.belactie-btn:active:not(:disabled) {
    transform: translateY(0);
}

.belactie-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Individual belactie colors */
.belactie-geen-gehoor {
    border-color: #e2e8f0;
}
.belactie-geen-gehoor:hover:not(:disabled),
.belactie-geen-gehoor.selected {
    background: #edf2f7;
    border-color: #a0aec0;
    color: #4a5568;
}
.belactie-geen-gehoor i { color: #a0aec0; }

.belactie-geen-payroll {
    border-color: #e2e8f0;
}
.belactie-geen-payroll:hover:not(:disabled),
.belactie-geen-payroll.selected {
    background: #fffaf0;
    border-color: #f6ad55;
    color: #c05621;
}
.belactie-geen-payroll i { color: #f6ad55; }

.belactie-terugbel {
    border-color: #e2e8f0;
}
.belactie-terugbel:hover:not(:disabled),
.belactie-terugbel.selected {
    background: #ebf8ff;
    border-color: #63b3ed;
    color: #2b6cb0;
}
.belactie-terugbel.active-selected {
    background: #3182ce;
    border-color: #2b6cb0;
    color: white;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.35);
    transform: translateY(-2px);
}
.belactie-terugbel.active-selected i {
    color: white;
}
.belactie-terugbel i { color: #63b3ed; }

.belactie-afspraak {
    border-color: #e2e8f0;
}
.belactie-afspraak:hover:not(:disabled),
.belactie-afspraak.selected {
    background: #f0fff4;
    border-color: #68d391;
    color: #276749;
}
.belactie-afspraak i { color: #68d391; }

.belactie-geen-interesse {
    border-color: #e2e8f0;
}
.belactie-geen-interesse:hover:not(:disabled),
.belactie-geen-interesse.selected {
    background: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
}
.belactie-geen-interesse i { color: #fc8181; }

/* Belactie status messages */
.belactie-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.belactie-status-saving {
    background: #ebf8ff;
    color: #2b6cb0;
}

.belactie-status-success {
    background: #f0fff4;
    color: #276749;
}

.belactie-status-error {
    background: #fff5f5;
    color: #c53030;
}

/* Terugbel datumpicker */
.terugbel-section {
    margin-top: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid #90cdf4;
    border-radius: 12px;
    animation: fadeInDown 0.3s ease;
}

.terugbel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 14px;
}

.terugbel-header i {
    font-size: 1.1rem;
}

.terugbel-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.terugbel-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.terugbel-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terugbel-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 5px;
}

.terugbel-input-group label i {
    color: #4299e1;
    font-size: 0.8rem;
}

.terugbel-date-input {
    padding: 10px 14px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
    background: white;
    min-width: 170px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.terugbel-date-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.terugbel-tijd-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    user-select: none;
    margin-bottom: 4px;
}

.terugbel-tijd-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4a90e2;
    cursor: pointer;
}

.terugbel-time-selects {
    display: flex;
    align-items: center;
    gap: 4px;
}

.terugbel-time-selects.hidden {
    display: none;
}

.terugbel-select {
    padding: 10px 12px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}

.terugbel-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.terugbel-time-sep {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a5568;
}

.terugbel-payroll-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #cbd5e0;
}

.payroll-option {
    padding: 10px 20px;
    border: none;
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.payroll-option:first-child {
    border-right: 1px solid #cbd5e0;
}

.payroll-option.selected {
    background: #48bb78;
    color: white;
}

.payroll-option:not(.selected):hover {
    background: #f7fafc;
}

.terugbel-actions {
    display: flex;
    gap: 8px;
}

.terugbel-confirm-btn,
.terugbel-cancel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.terugbel-confirm-btn {
    background: #48bb78;
    color: white;
}

.terugbel-confirm-btn:hover:not(:disabled) {
    background: #38a169;
    transform: translateY(-1px);
}

.terugbel-confirm-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    opacity: 0.7;
}

.terugbel-cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.terugbel-cancel-btn:hover {
    background: #cbd5e0;
}

/* Notitie bevestigings-sectie */
.notitie-section {
    margin-top: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fefcf0 0%, #fef9e7 100%);
    border: 1px solid #f6e05e;
    border-radius: 12px;
    animation: fadeInDown 0.3s ease;
}

.notitie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #975a16;
    margin-bottom: 14px;
}

.notitie-header i {
    font-size: 1.1rem;
}

.notitie-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notitie-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notitie-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #744210;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notitie-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ecc94b;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.notitie-textarea:focus {
    outline: none;
    border-color: #d69e2e;
    box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.15);
}

.notitie-textarea::placeholder {
    color: #a0aec0;
}

.notitie-actions {
    display: flex;
    gap: 8px;
}

.notitie-confirm-btn,
.notitie-cancel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notitie-confirm-btn {
    background: #48bb78;
    color: white;
}

.notitie-confirm-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.notitie-cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.notitie-cancel-btn:hover {
    background: #cbd5e0;
}

.klant-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: #a0aec0;
    text-align: center;
}

.klant-empty i {
    font-size: 2rem;
    opacity: 0.5;
}

.klant-empty p {
    font-size: 0.9rem;
    max-width: 320px;
}

/* Search section */
.search-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Accountmanagers section */
.accountants-section {
    margin-top: 25px;
}

.accountants-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accountant-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.accountant-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.accountant-btn:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #4a5568 100%);
    border-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
    color: white;
}

.accountant-btn:active {
    transform: translateY(0);
}

.accountant-btn i {
    font-size: 2rem;
    color: #ff8c00;
    transition: all 0.3s ease;
}

.accountant-btn:hover i {
    color: white;
    transform: scale(1.1);
}

.accountant-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
}

.accountant-btn:hover .accountant-name {
    color: white;
}

.accountant-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accountant-btn:hover .accountant-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.accountant-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.accountant-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

.accountant-btn.selected {
    background: linear-gradient(135deg, #ff8c00 0%, #4a5568 100%);
    border-color: #ff8c00;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.accountant-btn.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: #ff8c00;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.accountant-btn.selected i {
    color: white;
    transform: scale(1.1);
}

.accountant-btn.selected .accountant-name {
    color: white;
}

.accountant-btn.selected .accountant-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.location-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: #ff8c00;
    width: 16px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #ff8c00;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff8c00 0%, #4a5568 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.search-btn:active:not(:disabled) {
    transform: translateY(0);
}

.search-btn:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 5px;
}

.loading small {
    color: #888;
    font-size: 0.9rem;
}

/* Error message */
.error-message {
    background: #fee;
    color: #c53030;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c53030;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Results */
.results {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.results-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-header h2 i {
    color: #ffd700;
}

.client-info {
    color: #666;
    font-size: 0.95rem;
}

/* Results filters */
.results-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #718096;
    white-space: nowrap;
}

.filter-label i {
    color: #ff8c00;
    margin-right: 4px;
}

.filter-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 5px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #fff;
    color: #4a5568;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-btn small {
    color: #a0aec0;
    font-weight: 400;
}

.filter-btn:hover {
    border-color: #ff8c00;
    color: #ff8c00;
}

.filter-btn.active {
    background: #ff8c00;
    border-color: #ff8c00;
    color: #fff;
}

.filter-btn.active small {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .results-filters {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Summary stats */
.summary-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Calendar tabs */
.calendar-tabs {
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
    overflow-x: auto;
    gap: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
}

.tab-button:hover {
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.05);
}

.tab-button.active {
    color: #ff8c00;
    border-bottom-color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
}

.tab-badge {
    background: #ff8c00;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.tab-button.active .tab-badge {
    background: white;
    color: #ff8c00;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff8c00;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Days list */
.days-list {
    display: grid;
    gap: 20px;
}

.day-card {
    background: #fafbfc;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.day-card:hover {
    border-color: #ff8c00;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1);
}

.day-card.rank-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    border-color: #ffd700;
}

.day-card.rank-2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #c0c0c0;
}

.day-card.rank-3 {
    background: linear-gradient(135deg, #fff2e6 0%, #ffe5cc 100%);
    border-color: #cd7f32;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.day-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-title h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.day-name {
    background: #ff8c00;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.manager-badge {
    background: #4a5568;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.manager-badge i {
    font-size: 0.7rem;
}

/* Possible Slots Section */
.possible-slots-section {
    grid-column: 1 / -1;
}

.possible-slots-section h4 {
    margin-bottom: 12px;
}

.slots-list {
    display: grid;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for slots list */
.slots-list::-webkit-scrollbar {
    width: 6px;
}

.slots-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.slots-list::-webkit-scrollbar-thumb {
    background: #ff8c00;
    border-radius: 3px;
}

.slots-list::-webkit-scrollbar-thumb:hover {
    background: #e67e00;
}

.slot-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.slot-item:hover {
    background: #e9ecef;
    border-color: #ff8c00;
    transform: translateX(5px);
}

.slot-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    font-family: 'Monaco', 'Menlo', monospace;
}

.slot-time i {
    color: #ff8c00;
}

.slot-buffer {
    font-size: 0.85rem;
    color: #666;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

.rank-badge {
    background: linear-gradient(135deg, #ff8c00 0%, #4a5568 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    color: #333;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: white;
}

.day-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.detail-section h4 {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section h4 i {
    color: #ff8c00;
    width: 14px;
}

.detail-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.detail-secondary {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.time-slot {
    background: #e8f4f8;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.distance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.distance-badge {
    background: #ff8c00;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.duration-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Appointments list */
.appointments-section {
    grid-column: 1 / -1; /* Span full width */
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.appointment-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
}

.appointment-item:hover {
    background: #e9ecef;
    border-color: #ff8c00;
}

.appointment-time {
    font-size: 0.85rem;
    color: #ff8c00;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
}

.appointment-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 4px 0;
}

.appointment-location {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.appointment-distance {
    background: #ff8c00;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0;
}

/* Legend */
.legend {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.legend h3 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.legend-item i {
    width: 16px;
    color: #ff8c00;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .klant-section-wrapper,
    .search-section,
    .results {
        padding: 20px;
    }
    
    .klant-card {
        grid-template-columns: 1fr;
    }

    .klant-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-tab {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .pick-klant-btn {
        justify-content: center;
    }

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

    .terugbel-inputs {
        flex-direction: column;
    }

    .terugbel-date-input {
        width: 100%;
    }

    .terugbel-actions {
        justify-content: stretch;
    }

    .terugbel-confirm-btn,
    .terugbel-cancel-btn {
        flex: 1;
        justify-content: center;
    }

    .notitie-actions {
        justify-content: stretch;
    }

    .notitie-confirm-btn,
    .notitie-cancel-btn {
        flex: 1;
        justify-content: center;
    }
    
    .accountant-buttons {
        grid-template-columns: 1fr;
    }
    
    .accountant-btn {
        padding: 15px;
    }
    
    .accountant-btn i {
        font-size: 1.5rem;
    }
    
    .summary-stats {
        gap: 20px;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .day-details {
        grid-template-columns: 1fr;
    }
    
    .legend-items {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Login Page Styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 48px;
    max-width: 440px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #ff8c00;
    border-radius: 16px;
    margin-bottom: 16px;
}

.login-icon i {
    font-size: 32px;
    color: white;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #718096;
    font-size: 14px;
}

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

.login-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.login-label i {
    margin-right: 8px;
    color: #ff8c00;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.login-input:focus {
    border-color: #ff8c00;
}

.login-error {
    padding: 12px 16px;
    background-color: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-error i {
    color: #c53030;
}

.login-error-text {
    color: #c53030;
    font-size: 14px;
}

.login-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #ff8c00;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
    background: #e67e00;
}

.login-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.login-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-footer-text {
    font-size: 12px;
    color: #718096;
}

.login-footer-text i {
    margin-right: 6px;
}

/* MFA Styles */
.mfa-icon {
    background: #3182ce !important;
}

.mfa-code-input {
    text-align: center;
    font-size: 28px !important;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.mfa-back-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: none;
    border: none;
    color: #718096;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mfa-back-btn:hover {
    color: #4a5568;
}

.mfa-back-btn i {
    margin-right: 6px;
}

.mfa-setup-card {
    max-width: 480px;
}

.mfa-setup-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.mfa-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.mfa-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #ff8c00;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.mfa-qr-container {
    text-align: center;
    margin-bottom: 24px;
}

.mfa-qr-code {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 3px solid #e2e8f0;
    padding: 8px;
    background: white;
}

.mfa-show-secret-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #718096;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mfa-show-secret-btn:hover {
    background: #edf2f7;
    color: #4a5568;
}

.mfa-secret-display {
    margin-top: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mfa-secret-display code {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 2px;
    word-break: break-all;
    margin-bottom: 6px;
}

.mfa-secret-display p {
    font-size: 11px;
    color: #a0aec0;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .location-form {
        gap: 15px;
    }
    
    .search-btn {
        padding: 12px 20px;
    }
}

/* Klikbare tijdslots */
.slot-clickable {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    border-radius: 8px;
}

.slot-clickable:hover {
    background: #fffbeb;
    border-color: #f0a040;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(240, 160, 64, 0.2);
}

.slot-item.slot-clickable::after {
    content: '\f067';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #f0a040;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: auto;
}

.slot-item.slot-clickable:hover::after {
    opacity: 1;
}

.time-slot.slot-clickable {
    padding: 6px 12px;
}

/* Afspraak modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h2 {
    font-size: 1.25rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header h2 i {
    color: #f0a040;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-row {
    display: flex;
    gap: 16px;
}

.modal-row .modal-field {
    flex: 1;
}

.modal-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.modal-field label i {
    color: #f0a040;
    font-size: 0.8rem;
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2d3748;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: #f0a040;
    box-shadow: 0 0 0 3px rgba(240, 160, 64, 0.15);
}

.modal-readonly {
    background: #f7fafc;
    color: #4a5568;
    cursor: default;
}

.modal-readonly:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}

.modal-textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

.modal-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f0a040 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 160, 64, 0.4);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-cancel-btn {
    padding: 12px 20px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-cancel-btn:hover {
    background: #cbd5e0;
}

.modal-status {
    margin: 0 24px 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-status-saving {
    background: #ebf8ff;
    color: #2b6cb0;
}

.modal-status-success {
    background: #f0fff4;
    color: #276749;
}

.modal-status-error {
    background: #fff5f5;
    color: #c53030;
}

/* Klant edit mode */
.klant-card-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: -4px;
}

.klant-maps-btn {
    background: none;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #3182ce;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.klant-maps-btn:hover {
    background: #ebf8ff;
    color: #2b6cb0;
    border-color: #90cdf4;
}

.klant-maps-btn i {
    color: #e53e3e;
}


.klant-edit-btn {
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.klant-edit-btn:hover {
    background: #edf2f7;
    color: #4a5568;
    border-color: #a0aec0;
}

.klant-edit-input {
    flex: 1;
    padding: 6px 10px;
    border: 1.5px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #2d3748;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.klant-edit-input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.klant-edit-input.hidden {
    display: none;
}

.klant-card.editing .klant-value.hidden {
    display: none;
}

.klant-edit-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
}

.klant-edit-actions.hidden {
    display: none;
}

.klant-save-btn {
    background: #48bb78;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.klant-save-btn:hover {
    background: #38a169;
}

.klant-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.klant-cancel-edit-btn {
    background: #fff;
    color: #718096;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.klant-cancel-edit-btn:hover {
    background: #edf2f7;
    color: #4a5568;
}

.klant-edit-status {
    grid-column: 1 / -1;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.klant-edit-status.hidden {
    display: none;
}

.klant-edit-status.saving {
    background: #ebf8ff;
    color: #2b6cb0;
}

.klant-edit-status.success {
    background: #f0fff4;
    color: #276749;
}

.klant-edit-status.error {
    background: #fff5f5;
    color: #c53030;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-row {
        flex-direction: column;
        gap: 16px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-submit-btn,
    .modal-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}
