/* Hex Boekingen Plugin Styles */

.hex-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Attendees Table Styles */
.attendees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 20px;
}

.attendees-table th,
.attendees-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.attendees-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.attendees-table .attendee-name-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.attendees-table .attendee-name-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.hex-booking-form {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hex-booking-form h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.hex-booking-form h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.hex-booking-form h4 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Event Selection */
.event-selection {
    margin-bottom: 30px;
}

.event-selection select {
    font-size: 16px;
    padding: 15px;
}

/* Ticket Types */
.ticket-types {
    margin-bottom: 30px;
}

.ticket-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.ticket-type:hover {
    background-color: #e9ecef;
}

.ticket-info {
    flex: 1;
    margin-right: 20px;
}

.ticket-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.ticket-info p {
    margin: 0 0 5px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.ticket-info .price {
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
}

.ticket-quantity {
    text-align: center;
}

.ticket-quantity label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.ticket-quantity select {
    width: 80px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* Booking Summary */
#booking-summary {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

#booking-summary h3 {
    margin-top: 0;
    color: #2c3e50;
}

#booking-summary p {
    margin: 10px 0;
    font-size: 16px;
}

#booking-summary strong {
    color: #27ae60;
    font-size: 18px;
}

/* Attendee Fields */
#attendee-fields-container {
    margin-bottom: 30px;
}

.attendee-field {
    background-color: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.attendee-field h4 {
    margin-top: 0;
    color: #34495e;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

/* Contact Information */
.contact-information {
    margin-bottom: 30px;
}

.contact-information .form-row {
    display: flex;
    gap: 20px;
}

.contact-information .form-row .form-group {
    flex: 1;
}

/* Buttons */
.hex-button {
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.hex-button:hover {
    background-color: #2980b9;
}

.hex-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.hex-button-secondary {
    background-color: #95a5a6;
}

.hex-button-secondary:hover {
    background-color: #7f8c8d;
}

.hex-button-success {
    background-color: #27ae60;
}

.hex-button-success:hover {
    background-color: #229954;
}

/* Error Messages */
.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c0392b;
}

.error-message ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.error-message li {
    margin-bottom: 5px;
}

/* Success Messages */
.success-message {
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #229954;
}

/* Payment Status */
.payment-status {
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.payment-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.payment-failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* Booking Confirmation */
.booking-confirmation {
    background-color: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-confirmation h2 {
    color: #27ae60;
    margin-bottom: 20px;
}

.booking-details {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.booking-details h3 {
    margin-top: 0;
    color: #2c3e50;
}

.booking-details p {
    margin: 10px 0;
    font-size: 14px;
}

.booking-details strong {
    color: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hex-booking-container {
        padding: 10px;
    }
    
    .hex-booking-form {
        padding: 20px;
    }
    
    .ticket-type {
        flex-direction: column;
        text-align: center;
    }
    
    .ticket-info {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-information .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hex-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Validation States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

/* Admin Styles */
.hex-admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hex-admin-header {
    background-color: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hex-admin-header h1 {
    margin: 0;
    color: #2c3e50;
}

.hex-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.stat-card.stat-total {
    border-left: 4px solid #3498db;
}

.stat-card.stat-paid {
    border-left: 4px solid #27ae60;
}

.stat-card.stat-pending {
    border-left: 4px solid #f39c12;
}

.stat-card.stat-cancelled {
    border-left: 4px solid #e74c3c;
}

/* Data Tables */
.hex-data-table {
    background-color: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hex-data-table table {
    width: 100%;
    border-collapse: collapse;
}

.hex-data-table th {
    background-color: #34495e;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid #2c3e50;
}

.hex-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

.hex-data-table tr:hover {
    background-color: #f8f9fa;
}

.hex-data-table .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-paid {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.status-expired {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Action Buttons */
.hex-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hex-actions .hex-button {
    padding: 6px 12px;
    font-size: 12px;
}

/* Export Section */
.hex-export-section {
    background-color: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hex-export-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.export-options {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.export-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Form Actions */
.hex-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .hex-admin-stats {
        grid-template-columns: 1fr;
    }
    
    .hex-data-table {
        overflow-x: auto;
    }
    
    .hex-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .export-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hex-form-actions {
        flex-direction: column;
    }
    
    .hex-button {
        width: 100%;
    }
}

/* WordPress Admin Event Form Styling */
#event-dates .inside,
#event-settings .inside {
    padding: 12px;
}

#event-dates .form-group,
#event-settings .form-group {
    margin-bottom: 15px;
}

#event-dates .form-group:last-child,
#event-settings .form-group:last-child {
    margin-bottom: 0;
}

#event-dates label,
#event-settings label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1d2327;
}

#event-dates input[type="date"],
#event-settings input[type="number"],
#event-settings select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

#event-dates input[type="date"]:focus,
#event-settings input[type="number"]:focus,
#event-settings select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Sidebar postbox styling */
#postbox-container-1 .postbox {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

#postbox-container-1 .postbox h2 {
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    font-size: 14px;
    padding: 8px 12px;
    margin: 0;
    line-height: 1.4;
}

/* Ticket types styling */
.ticket-type-item {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.ticket-type-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dcdcde;
}

.ticket-type-item .form-row {
    display: flex;
    gap: 15px;
}

.ticket-type-item .form-row .form-group {
    flex: 1;
}

.ticket-type-item .button-danger {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.ticket-type-item .button-danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}