/* Basis styling */
.atc-appointment-manager {
    max-width: 1150px;
    margin: 0 auto;
    padding: 32px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #000;
    font-size: 14px;
}

/* Huidige afspraak */
.current-appointment {
    background: #fff;
    border: 1px solid #000;
    padding: 40px;
    margin-bottom: 32px;
}

.current-appointment h2,
.current-appointment h3 {
    font-size: 23px;
    font-weight: 300;
    margin-bottom: 24px;
}

.current-appointment p {
    margin: 0 0 10px 0;
    line-height: 1.8;
}

/* Knoppen */
.appointment-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.atc-button {
    padding: 12px 24px !important;
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 300 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.atc-button:hover {
    background: #f5f5f5 !important;
    border-color: #000 !important;
}

.atc-button.atc-primary {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

.atc-button.atc-primary:hover {
    background: #333 !important;
    border-color: #000 !important;
}

/* Specifieke stijlen voor modify en cancel knoppen */
.modify-appointment {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

.modify-appointment:hover {
    background: #333 !important;
    border-color: #000 !important;
}

#cancel-appointment {
    background: #800808 !important;
    color: #fff !important;
    border: 1px solid #800808 !important;
}

#cancel-appointment:hover {
    background: #5f0707 !important;
    border-color: #5f0707 !important;
    color: #fff !important;
}

/* Kalender navigatie knoppen */
.atc-calendar-nav {
    padding: 5px !important;
    border: 1px solid #000 !important;
    background: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.atc-calendar-nav:hover {
    background: #f5f5f5 !important;
    border-color: #000 !important;
}

.atc-calendar-nav.next {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

.atc-calendar-nav.next:hover {
    background: #f5f5f5 !important;
    border-color: #000 !important;
}

/* Modification sectie */
.modification-section {
    background: #fff;
    border: 1px solid #000;
    padding: 40px;
    margin-top: 32px;
}

.modification-section h3 {
    font-size: 23px;
    font-weight: 300;
    margin-bottom: 24px;
}

/* Grid layout voor datum en tijd selectie */
.atc-steps-container {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 20px;
    margin-bottom: 30px;
}

.atc-form-section {
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.atc-form-section h4,
.atc-calendar-section h4 {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 16px;
    color: #333;
}

/* Kalender styling */
.atc-calendar-view {
    border: 1px solid #000;
    padding: 16px;
}

.atc-calendar-header {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    margin-bottom: 16px;
}

.atc-calendar-title {
    text-align: center;
    font-weight: 300;
    font-size: 14px;
}

.atc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 5px;
    text-align: center;
}

.atc-weekdays div {
    padding: 3px 0;
    font-size: 12px;
    font-weight: 300;
}

.atc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.atc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    cursor: pointer;
    font-weight: 300;
    transition: all 0.2s ease;
    font-size: 13px;
}

.atc-day.unavailable {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.atc-day.empty {
    border: none;
}

.atc-day.selected {
    background: #000;
    color: #fff;
}

.atc-day:not(.unavailable):not(.empty):hover {
    background: #f0f0f0;
}

/* Tijdslots styling */
.atc-time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 15px;
}

/* Time slot styling similar to closet-detox */
.atc-time-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 300;
    min-height: 60px;
}

.atc-time-slot:hover {
    background: #f5f5f5;
}

.atc-time-slot.selected {
    background: #000;
    color: #fff;
}

.atc-time-slot .time {
    font-weight: 400;
    margin-bottom: 4px;
}

.atc-time-slot .duration {
    font-size: 12px;
    color: #666;
}

.atc-time-slot.selected .duration {
    color: #ccc;
}

/* Extra uren sectie */
.extra-hours-section {
    margin: 30px 0;
}

.extra-hours-section label {
    display: block;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 10px;
}

.extra-hours-section select {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 1px solid #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    background: #fff;
}

/* Selected state voor knoppen met !important flag */
.atc-button.selected,
select option:checked,
.atc-extra-hours-options .atc-button.selected {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Form actions */
.form-actions {
    margin-top: 30px;
    padding-top: 25px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Loading state */
.atc-loading {
    text-align: center;
    padding: 20px;
    font-weight: 300;
}

/* Loading spinner verbeterd */
.atc-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin: 0;
    vertical-align: middle;
}

/* Witte spinner voor donkere achtergronden */
.atc-loading-spinner.light,
.atc-button.atc-primary .atc-loading-spinner,
#cancel-appointment .atc-loading-spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styling */
@media (max-width: 768px) {
    .atc-appointment-manager {
        padding: 16px;
    }

    .current-appointment,
    .modification-section {
        padding: 20px;
    }

    .atc-steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .atc-form-section {
        padding-right: 0;
        border-right: none;
    }

    .atc-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .appointment-actions {
        flex-direction: column-reverse !important;
        width: 100% !important;
    }

    .appointment-actions button {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* Reset WordPress styling */
.atc-appointment-manager button,
.atc-appointment-manager .button,
.atc-appointment-manager .atc-button {
    box-shadow: none !important;
    text-shadow: none !important;
}

.notice {
    color: #721c24;
    background-color: #f8d7da;
    padding: 15px;
    border-radius: 4px;
}

.time-slots-section {
    margin: 20px 0;
}

.extra-hours {
    margin: 20px 0;
}

#save-modification {
    margin-top: 20px;
} 