/* Event Reservation System - Frontend Styles */

.ers-events-container {
    margin: 20px 0;
}

.ers-events-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.ers-events-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ers-events-table th,
.ers-events-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ers-events-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.ers-events-table tr:hover {
    background: #f8f9fa;
}

.ers-event-row.ers-full {
    opacity: 0.6;
    background: #f5f5f5;
}

.ers-full-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.ers-reserve-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.ers-reserve-btn:hover {
    background: #005a87;
}

.ers-reserve-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ers-full-text {
    color: #dc3545;
    font-weight: bold;
}

.ers-info-text {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    border-left: 4px solid #007cba;
}

.ers-info-text p {
    margin: 5px 0;
}

/* Modal Styles */
.ers-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ers-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ers-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.ers-modal-close:hover {
    color: #333;
}

/* Form Styles */
.ers-reservation-form {
    max-width: 500px;
}

.ers-form-group {
    margin-bottom: 20px;
}

.ers-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.ers-form-group input,
.ers-form-group select,
.ers-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ers-form-group input:focus,
.ers-form-group select:focus,
.ers-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.ers-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ers-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.ers-radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.ers-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.ers-submit-btn,
.ers-cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.ers-submit-btn {
    background: #007cba;
    color: white;
}

.ers-submit-btn:hover {
    background: #005a87;
}

.ers-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ers-cancel-btn {
    background: #6c757d;
    color: white;
}

.ers-cancel-btn:hover {
    background: #545b62;
}

/* Reservations Management */
.ers-reservations-management {
    padding: 40px 0;
}

.ers-reservation-lookup {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ers-reservations-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.ers-reservations-table th,
.ers-reservations-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ers-reservations-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.ers-reservations-table tr:hover {
    background: #f8f9fa;
}

.ers-cancel-reservation-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.ers-cancel-reservation-btn:hover {
    background: #c82333;
}

.ers-cancel-reservation-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ers-reservation-actions {
    background: #e7f3ff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.ers-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.ers-action-btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    text-align: center;
}

.ers-action-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.ers-lookup-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.ers-lookup-btn:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ers-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .ers-events-table {
        font-size: 14px;
    }
    
    .ers-events-table th,
    .ers-events-table td {
        padding: 8px 10px;
    }
    
    .ers-action-buttons {
        gap: 10px;
    }
    
    .ers-action-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .ers-reservations-table {
        font-size: 14px;
    }
    
    .ers-reservations-table th,
    .ers-reservations-table td {
        padding: 8px 10px;
    }
}
