/* Intégration esthétique rapide dans ton widget */
.lk-calendar-container {
    margin-top: 25px;
    display: none;
}

#lk-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.85em;
}

#lk-new-booking-btn-wrapper {
    margin-top: 20px;
    text-align: center;
}

#lk-calendar-component {
    max-width: 100%;
    background: #ffffff;
    font-family: inherit;
}
#lk-initial-loading {
    width: 100%;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    border: 1px solid #dddddd;
}

.lk-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.lk-modal-content {
    position: relative;
    width: 100%;
    margin: auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lk-modal-content--booking {
    max-width: 450px;
}

.lk-modal-content--cancel {
    max-width: 400px;
}

.lk-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.lk-modal-title {
    margin: 0 0 20px !important;
}

.lk-modal-title--danger {
    margin-bottom: 10px;
    color: #dc2626;
}

.lk-modal-text {
    margin: 0 0 20px;
    color: #475569;
    font-size: 0.9em;
}

.lk-modal .lk-form-group {
    margin-bottom: 12px;
}

.lk-form-group--spacious {
    margin-bottom: 15px;
}

.lk-modal label {
    display: block;
    margin-bottom: 5px;
}

.lk-form-label {
    font-weight: 700;
}

.lk-modal input:not([type="hidden"]),
.lk-modal select {
    width: 100%;
}

.lk-form-help {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.85em;
}

.lk-modal-submit {
    width: 100%;
}

.lk-modal-submit--danger {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #dc2626;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.lk-code-input {
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 2px;
}

.lk-modal-result {
    display: none;
    margin-top: 15px;
}

.lk-modal-result--status {
    padding: 10px;
    border-radius: 4px;
    color: #334155;
    font-size: 0.9em;
    text-align: center;
}

.lk-modal-result--status.is-neutral {
    background-color: #f1f5f9;
}

.lk-modal-result--status.is-success {
    background-color: #dcfce7;
    color: #166534;
}

.lk-modal-result--status.is-error {
    background-color: #fee2e2;
    color: #991b1b;
}
/* Personnalisation des badges d'événements (réservations) */
.fc-event {
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.8em !important;
    border-radius: 3px !important;
    border: none !important;
}

.fc .fc-daygrid-day:not(.fc-day-past):hover {
    cursor: pointer;
    background-color: #f1f5f9 !important; /* Couleur gris bleuté très léger au hover */
}

.fc-event-main > span:not(.lk-delete-btn) {
    width: calc(100% - 20px);
    display: inline-flex;
    overflow: hidden;
}
/* Cache l'icône par défaut */
.lk-delete-btn {
    display: none;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
    font-weight: bold;
    opacity: 0;
    position: absolute;
    right: 0;
}
.lk-delete-btn:hover {
    opacity: 1;
}

/* Affiche la croix uniquement au hover du bloc d'événement de FullCalendar */
.fc-event:hover .lk-delete-btn {
    display: inline-block;
    opacity: 1;
}
