/* Custom Booking Frontend Styles */

.cb-booking-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cb-booking-wrapper h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.cb-resource-description {
    margin: 0 0 20px 0;
    color: #666;
}

.cb-booking-grid {
    overflow-x: auto;
}

.cb-booking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cb-booking-table th,
.cb-booking-table td {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.cb-booking-table thead th {
    background: #F2F0FE;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.cb-session-header {
    min-width: 180px;
    text-align: left !important;
}

.cb-date-header {
    min-width: 120px;
}

.cb-date-day {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cb-date-num {
    font-size: 16px;
    font-weight: 600;
}

.cb-session-cell {
    text-align: left !important;
    background: #f9f9f9;
}

.cb-session-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.cb-session-time {
    font-size: 12px;
    color: #666;
}

.cb-slot-cell {
    padding: 10px;
}

.cb-book-button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100px;
}

.cb-book-button.cb-available {
    background: #9058ff;
    color: #fff;
}

.cb-book-button.cb-available:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.cb-book-button.cb-full {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.cb-book-button.cb-closed {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border: 1px dashed #ccc;
}

/* Modal Styles */
.cb-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.cb-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.cb-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
}

.cb-modal-close:hover,
.cb-modal-close:focus {
    color: #000;
}

.cb-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.cb-booking-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.cb-booking-info p {
    margin: 5px 0;
    font-size: 14px;
}

.cb-booking-info strong {
    display: inline-block;
    width: 80px;
}

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

.cb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cb-form-group input,
.cb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.cb-form-group input:focus,
.cb-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cb-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cb-button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cb-button-primary {
    background: #2271b1;
    color: #fff;
}

.cb-button-primary:hover {
    background: #135e96;
}

.cb-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.cb-button-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

#cb-booking-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
}

#cb-booking-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#cb-booking-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .cb-booking-table th,
    .cb-booking-table td {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .cb-book-button {
        padding: 8px 10px;
        font-size: 11px;
        max-width: 80px;
    }
    
    .cb-date-num {
        font-size: 14px;
    }
    
    .cb-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
}
