/* Styles pour la section des réservations utilisateur */
.rp-user-bookings {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
}

.rp-user-bookings h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Message de connexion */
.rp-login-message {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.rp-login-message p {
    margin-bottom: 15px;
}

.rp-login-message .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8e44ad;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.rp-login-message .button:hover {
    background-color: #9b59b6;
}

/* Message d'absence de réservations */
.rp-no-bookings {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rp-no-bookings p {
    margin-bottom: 15px;
}

.rp-no-bookings .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8e44ad;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.rp-no-bookings .button:hover {
    background-color: #9b59b6;
}

/* Onglets */
.rp-bookings-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.rp-tab {
    padding: 12px 24px;
    margin: 0 5px;
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.rp-tab:hover {
    color: #8e44ad;
}

.rp-tab.active {
    color: #8e44ad;
    border-bottom-color: #8e44ad;
}

/* Liste des réservations */
.rp-bookings-content {
    margin-top: 20px;
}

.rp-bookings-list {
    display: none;
}

.rp-bookings-list.active {
    display: block;
}

.rp-no-bookings-message {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    color: #7f8c8d;
    font-style: italic;
}

/* Élément de réservation */
.rp-booking-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rp-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.rp-booking-date {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.rp-booking-status {
    flex-shrink: 0;
}

.rp-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rp-status-confirmed {
    background-color: #e7f9e7;
    color: #27ae60;
}

.rp-status-past {
    background-color: #f0f0f0;
    color: #7f8c8d;
}

.rp-status-cancelled {
    background-color: #fdf0eb;
    color: #e74c3c;
}

.rp-booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rp-booking-time,
.rp-booking-duration,
.rp-booking-players,
.rp-booking-price {
    margin-bottom: 10px;
    color: #34495e;
}

.rp-booking-details strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.rp-booking-actions {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.rp-cancel-booking {
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rp-cancel-booking:hover {
    background-color: #c0392b;
}

.rp-cancel-notice {
    color: #e74c3c;
    font-size: 14px;
    font-style: italic;
    text-align: right;
    margin: 0;
}

/* Modal de confirmation */
.rp-booking-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.rp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.rp-modal-content h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.rp-modal-content p {
    text-align: center;
    margin-bottom: 25px;
}

.rp-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rp-modal-confirm {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rp-modal-confirm:hover {
    background-color: #c0392b;
}

.rp-modal-cancel {
    padding: 10px 20px;
    background-color: #7f8c8d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rp-modal-cancel:hover {
    background-color: #6c7a89;
}

.rp-modal-message {
    text-align: center;
    margin-top: 20px;
}

.rp-success {
    color: #27ae60;
}

.rp-error {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .rp-bookings-tabs {
        flex-wrap: wrap;
    }
    
    .rp-tab {
        flex: 1;
        text-align: center;
        font-size: 14px;
        padding: 10px;
    }
    
    .rp-booking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rp-booking-status {
        margin-top: 10px;
    }
    
    .rp-booking-details {
        grid-template-columns: 1fr;
    }
    
    .rp-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .rp-modal-confirm,
    .rp-modal-cancel {
        width: 100%;
    }
}

/* Thème JDR */
.rp-user-bookings {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23f0f0f0" d="M50 0 L100 50 L50 100 L0 50 Z"/></svg>');
    background-size: 20px;
    border: 2px solid #34495e;
}

.rp-booking-item {
    border-left: 4px solid #8e44ad;
}

.rp-login-message .button,
.rp-no-bookings .button,
.rp-tab.active {
    background-color: #8e44ad;
}

.rp-login-message .button:hover,
.rp-no-bookings .button:hover {
    background-color: #9b59b6;
}