.tour-calendar-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

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

.calendar-header button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.calendar-header button:hover {
    background-color: #1976D2;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background-color: #f0f0f0;
}

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

.calendar-day {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-day:hover:not(.reserved):not(.pending):not(.past) {
    background-color: #e3f2fd;
}

.calendar-day.reserved {
    background-color: #ffebee;
    cursor: not-allowed;
}

.calendar-day.pending {
    background-color: #fff3e0;
    cursor: not-allowed;
}

.calendar-day.reserved::after {
    content: "Reserved";
    display: block;
    font-size: 0.8em;
    color: #d32f2f;
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
}

.calendar-day.pending::after {
    content: "Pending";
    display: block;
    font-size: 0.8em;
    color: #f57c00;
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
}

.calendar-day.past {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 5px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.selected-date {
    font-size: 1.2em;
    color: #2196F3;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #2196F3;
    outline: none;
}

.form-group input.error {
    border-color: #f44336;
}

.field-error {
    color: #f44336;
    font-size: 0.875em;
    margin-top: 4px;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.submit-button {
    background-color: #2196F3;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 30px;
}

.submit-button:hover {
    background-color: #1976D2;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

/* Captcha styles */
.captcha-group {
    margin-bottom: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-text {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    user-select: none;
}

.refresh-captcha {
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.refresh-captcha:hover {
    background-color: #bdbdbd;
}

/* Date filter styles */
.booking-filters {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quick-filters {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: #f0f0f0;
}

.filter-button.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.custom-date-filter {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.date-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.date-inputs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
}

.date-inputs label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: normal;
    color: #666;
}

.date-inputs input[type="date"],
.date-inputs select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

/* Admin styles */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-buttons .approve-booking {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.action-buttons .approve-booking:hover {
    background-color: #388E3C;
}

.action-buttons .reject-booking {
    background-color: #f44336;
    color: white;
    border: none;
}

.action-buttons .reject-booking:hover {
    background-color: #d32f2f;
}

.action-buttons .edit-booking {
    background-color: #2196F3;
    color: white;
    border: none;
}

.action-buttons .edit-booking:hover {
    background-color: #1976D2;
}

.action-buttons .delete-booking {
    background-color: #757575;
    color: white;
    border: none;
}

.action-buttons .delete-booking:hover {
    background-color: #616161;
}

/* Status colors in admin table */
.wp-list-table .status-pending {
    color: #f57c00;
}

.wp-list-table .status-approved {
    color: #4CAF50;
}

.wp-list-table .status-rejected {
    color: #f44336;
}

/* Admin message styles */
.admin-message {
    position: fixed;
    top: 32px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.admin-message.success {
    border-left: 4px solid #4CAF50;
}

.admin-message.error {
    border-left: 4px solid #f44336;
}

/* Loading spinner styles */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Filter button disabled state */
.filter-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form disabled state */
#date-filter-form :input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-filters > div {margin-bottom: 10px;}
#date-filter-form button.button.button-primary {margin-top: 10px;}
