﻿/* Simple Reservation System - Public Styles */

:root {
    --wppluginfactory-primary: #3788d8;
    --wppluginfactory-primary-dark: #2c6cb0;
    --wppluginfactory-success: #28a745;
    --wppluginfactory-warning: #ffc107;
    --wppluginfactory-danger: #dc3545;
    --wppluginfactory-info: #17a2b8;
    --wppluginfactory-gray: #6c757d;
    --wppluginfactory-light: #f8f9fa;
    --wppluginfactory-border: #dee2e6;
    --wppluginfactory-radius: 6px;
    --wppluginfactory-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Global */
.wppluginfactory-calendar-wrapper,
.wppluginfactory-my-reservations,
.wppluginfactory-reservation-form-wrapper,
.wppluginfactory-auth-form,
.wppluginfactory-profile-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Notices */
.wppluginfactory-notice {
    padding: 12px 20px;
    border-radius: var(--wppluginfactory-radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.wppluginfactory-notice.wppluginfactory-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.wppluginfactory-notice.wppluginfactory-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.wppluginfactory-notice.wppluginfactory-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.wppluginfactory-notice.wppluginfactory-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Forms */
.wppluginfactory-form-group {
    margin-bottom: 16px;
}
.wppluginfactory-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.wppluginfactory-form-group input[type="text"],
.wppluginfactory-form-group input[type="email"],
.wppluginfactory-form-group input[type="password"],
.wppluginfactory-form-group input[type="tel"],
.wppluginfactory-form-group input[type="number"],
.wppluginfactory-form-group input[type="date"],
.wppluginfactory-form-group input[type="datetime-local"],
.wppluginfactory-form-group input[type="time"],
.wppluginfactory-form-group select,
.wppluginfactory-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--wppluginfactory-border);
    border-radius: var(--wppluginfactory-radius);
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wppluginfactory-form-group input:focus,
.wppluginfactory-form-group select:focus,
.wppluginfactory-form-group textarea:focus {
    border-color: var(--wppluginfactory-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 136, 216, 0.15);
}

.wppluginfactory-form-row {
    display: flex;
    gap: 16px;
}
.wppluginfactory-form-group.wppluginfactory-half {
    flex: 1;
}
.wppluginfactory-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.wppluginfactory-form-message {
    padding: 10px 14px;
    border-radius: var(--wppluginfactory-radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.wppluginfactory-form-message.wppluginfactory-msg-error { background: #f8d7da; color: #721c24; }
.wppluginfactory-form-message.wppluginfactory-msg-success { background: #d4edda; color: #155724; }

/* Buttons */
.wppluginfactory-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: var(--wppluginfactory-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.5;
}
.wppluginfactory-btn-primary {
    background: var(--wppluginfactory-primary);
    color: #fff;
}
.wppluginfactory-btn-primary:hover {
    background: var(--wppluginfactory-primary-dark);
}
.wppluginfactory-btn-danger {
    background: var(--wppluginfactory-danger);
    color: #fff;
}
.wppluginfactory-btn-danger:hover {
    background: #c82333;
}
.wppluginfactory-btn-small {
    padding: 6px 14px;
    font-size: 12px;
}
.wppluginfactory-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Calendar */
.wppluginfactory-calendar-filter {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wppluginfactory-calendar-filter select {
    padding: 8px 12px;
    border: 1px solid var(--wppluginfactory-border);
    border-radius: var(--wppluginfactory-radius);
    font-size: 14px;
}

#wppluginfactory-calendar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* FullCalendar Toolbar */
.fc .fc-toolbar {
    margin-bottom: 16px !important;
    align-items: center !important;
}
.fc .fc-toolbar-title {
    font-size: 1.5em !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

/* Navigation buttons (prev/next) */
.fc .fc-prev-button,
.fc .fc-next-button {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    box-shadow: none !important;
    transition: all 0.2s !important;
}
.fc .fc-prev-button:hover,
.fc .fc-next-button:hover {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    background: #f5f3ff !important;
}
.fc .fc-prev-button:active,
.fc .fc-next-button:active {
    background: #ede9fe !important;
}
.fc .fc-prev-button .fc-icon,
.fc .fc-next-button .fc-icon {
    font-size: 1.1em !important;
}

/* View buttons (Maand, Week, Dag, Lijst) */
.fc .fc-button-group {
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid #e0e0e0 !important;
    background: #f8f9fa !important;
}
.fc .fc-button-group .fc-button {
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 16px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    transition: all 0.2s !important;
}
.fc .fc-button-group .fc-button:hover {
    background: #ede9fe !important;
    color: #6366f1 !important;
}
.fc .fc-button-group .fc-button.fc-button-active {
    background: #6366f1 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3) !important;
}

/* Day headers (MA, DI, WO, etc.) */
.fc .fc-col-header-cell {
    padding: 12px 0 !important;
    border: none !important;
}
.fc .fc-col-header-cell-cushion {
    color: #999 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.05em !important;
}

/* Grid cells */
.fc .fc-daygrid-day {
    border-color: #f0f0f0 !important;
    transition: background 0.15s !important;
}
.fc .fc-daygrid-day:hover {
    background: #fafafa !important;
}
.fc .fc-scrollgrid {
    border-color: #f0f0f0 !important;
}
.fc td, .fc th {
    border-color: #f0f0f0 !important;
}
.fc .fc-scrollgrid-section > td {
    border-color: #f0f0f0 !important;
}

/* Day numbers */
.fc .fc-daygrid-day-number {
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #333 !important;
    padding: 8px 10px !important;
    text-decoration: none !important;
}
.fc .fc-day-other .fc-daygrid-day-number {
    color: #ccc !important;
}
.fc .fc-day-sun .fc-daygrid-day-number {
    color: #6366f1 !important;
}

/* Today highlight */
.fc .fc-day-today {
    background: rgba(99,102,241,0.03) !important;
}
.fc .fc-daygrid-day.fc-day-today {
    border: 2px dashed rgba(99,102,241,0.4) !important;
    border-radius: 8px !important;
}

/* Events */
.fc .fc-daygrid-event {
    border: none !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-bottom: 2px !important;
    cursor: pointer !important;
    transition: opacity 0.2s, transform 0.15s !important;
}
.fc .fc-daygrid-event:hover {
    opacity: 0.85 !important;
    transform: scale(1.02) !important;
}
.fc .fc-event-main {
    padding: 2px 4px !important;
    overflow: hidden;
}
.fc .fc-event-main-frame {
    flex-direction: column !important;
    gap: 0 !important;
}
.fc .fc-event-time {
    font-weight: 700 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc .fc-event-title {
    font-weight: 500 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc .fc-event-subtitle {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc .fc-daygrid-dot-event .fc-event-title {
    font-weight: 500 !important;
}

/* More link */
.fc .fc-daygrid-more-link {
    color: #6366f1 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* Week/Day time grid */
.fc .fc-timegrid-slot {
    height: 48px !important;
    border-color: #f0f0f0 !important;
}
.fc .fc-timegrid-slot-label-cushion {
    font-size: 12px !important;
    color: #999 !important;
}
.fc .fc-timegrid-event {
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
}

/* List view */
.fc .fc-list {
    border-color: #f0f0f0 !important;
}
.fc .fc-list-day-cushion {
    background: #f8f9fa !important;
}
.fc .fc-list-event:hover td {
    background: #f5f3ff !important;
}

/* Modal */
.wppluginfactory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wppluginfactory-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.wppluginfactory-modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.wppluginfactory-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--wppluginfactory-border);
}
.wppluginfactory-modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.wppluginfactory-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--wppluginfactory-gray);
    padding: 0;
    line-height: 1;
}
.wppluginfactory-modal-close:hover {
    color: #333;
}
.wppluginfactory-modal-body {
    padding: 24px;
}
.wppluginfactory-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--wppluginfactory-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* My Reservations */
.wppluginfactory-my-res-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.wppluginfactory-my-res-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--wppluginfactory-border);
    border-radius: var(--wppluginfactory-radius);
}
.wppluginfactory-my-res-period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8fbff 0%, #f2f7ff 100%);
    border: 1px solid #d7e5ff;
    border-radius: 999px;
    padding: 6px;
}
.wppluginfactory-my-res-nav {
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.wppluginfactory-my-res-selectors {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}
.wppluginfactory-my-res-selectors select {
    border-radius: 999px;
    border-color: #c8dafd;
    background: #fff;
    min-height: 32px;
}
.wppluginfactory-ical-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.wppluginfactory-ical-input {
    width: 200px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid var(--wppluginfactory-border);
    border-radius: var(--wppluginfactory-radius);
}

.wppluginfactory-reservation-card {
    background: #fff;
    border: 1px solid var(--wppluginfactory-border);
    border-radius: var(--wppluginfactory-radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}
.wppluginfactory-reservation-card:hover {
    box-shadow: var(--wppluginfactory-shadow);
}
.wppluginfactory-reservation-card .wppluginfactory-res-color {
    width: 6px;
    border-radius: 3px;
    align-self: stretch;
    flex-shrink: 0;
}
.wppluginfactory-reservation-card .wppluginfactory-res-info {
    flex: 1;
}
.wppluginfactory-reservation-card .wppluginfactory-res-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}
.wppluginfactory-reservation-card .wppluginfactory-res-meta {
    font-size: 13px;
    color: var(--wppluginfactory-gray);
}
.wppluginfactory-reservation-card .wppluginfactory-res-meta span {
    margin-right: 16px;
}
.wppluginfactory-reservation-card .wppluginfactory-res-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-self: center;
}

/* Status badges */
.wppluginfactory-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.wppluginfactory-status-confirmed { background: #d4edda; color: #155724; }
.wppluginfactory-status-pending { background: #fff3cd; color: #856404; }
.wppluginfactory-status-cancelled { background: #f8d7da; color: #721c24; }

/* Time slots */
.wppluginfactory-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.wppluginfactory-time-slot {
    padding: 8px 16px;
    border: 2px solid var(--wppluginfactory-primary);
    border-radius: var(--wppluginfactory-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    background: #fff;
    color: var(--wppluginfactory-primary);
}
.wppluginfactory-time-slot:hover,
.wppluginfactory-time-slot.selected {
    background: var(--wppluginfactory-primary);
    color: #fff;
}
.wppluginfactory-time-slot.unavailable {
    border-color: var(--wppluginfactory-border);
    color: var(--wppluginfactory-gray);
    cursor: not-allowed;
    opacity: 0.5;
}
.wppluginfactory-spots-left {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

/* iCal URL */
.wppluginfactory-ical-url {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wppluginfactory-ical-url input {
    flex: 1;
}

/* Auth forms */
.wppluginfactory-auth-form {
    max-width: 420px;
}
.wppluginfactory-auth-form h3 {
    margin-bottom: 20px;
}

/* Loading */
.wppluginfactory-loading {
    text-align: center;
    padding: 40px;
    color: var(--wppluginfactory-gray);
    font-size: 14px;
}

/* Detail modal content */
.wppluginfactory-detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.wppluginfactory-detail-label {
    font-weight: 600;
    width: 120px;
    flex-shrink: 0;
    color: var(--wppluginfactory-gray);
    font-size: 13px;
}
.wppluginfactory-detail-value {
    flex: 1;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .wppluginfactory-form-row {
        flex-direction: column;
        gap: 0;
    }
    .wppluginfactory-my-res-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .wppluginfactory-my-res-period {
        justify-content: space-between;
        border-radius: var(--wppluginfactory-radius);
        width: 100%;
    }
    .wppluginfactory-my-res-selectors {
        flex: 1;
    }
    .wppluginfactory-my-res-selectors select {
        width: 100%;
    }
    .wppluginfactory-ical-link {
        margin-left: 0;
    }
    .wppluginfactory-reservation-card {
        flex-direction: column;
    }
    .wppluginfactory-reservation-card .wppluginfactory-res-color {
        height: 6px;
        width: 100%;
    }
    .wppluginfactory-modal-content {
        width: 95%;
    }
}
