/* Base styles */
.planning-danse-plugin-wrapper {
    --collumn-width: 117px;
    --time-collumn-width: 40px;
    --planning-min-width: 1800px;
    --planning-min-width-768: 768px;
    --planning-min-width-480: 480px;
    --planning-min-width-380: 380px;
}

.planning-danse-plugin-wrapper .planning-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 20px;
}

.planning-danse-plugin-wrapper .planning-header {
    padding: 20px 0px 0px 0px;
    z-index: 105;
}

.planning-danse-plugin-wrapper .planning-table {
    width: auto;
    margin: 0 auto; /* Centre le tableau */
    border-collapse: separate;
    border-spacing: 3px;
    border:none !important;
    color: #ffffff;
    animation: fadeIn 0.5s ease-out;
    table-layout: fixed;
}

.planning-danse-plugin-wrapper .planning-table th {
    padding: 5px!important;
    table-layout: fixed;
    text-align: center;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    border: none;
    transition: background-color: 0.3s ease;
}

.planning-danse-plugin-wrapper .planning-table .days-row th{
   font-size: 1.2em;
}

/* Corps du planning */
.planning-danse-plugin-wrapper .planning-body {
   overflow-x: auto !important; /* Ajout de !important */
}

.planning-danse-plugin-wrapper .planning-body::-webkit-scrollbar,
.planning-danse-plugin-wrapper .planning-headers::-webkit-scrollbar {
    height: 10px; /* Hauteur de la scrollbar */
    background-color: #1a1a1a;
}
.planning-danse-plugin-wrapper .planning-body::-webkit-scrollbar-thumb,
.planning-danse-plugin-wrapper .planning-headers::-webkit-scrollbar-thumb {
    background: #6d6d6d; /* Couleur de la barre de défilement */
    border-radius: 4px;
}

.planning-danse-plugin-wrapper .planning-body::-webkit-scrollbar-track,
.planning-danse-plugin-wrapper .planning-headers::-webkit-scrollbar-track {
    background: #2a2a2a; /* Couleur du fond de la scrollbar */
}

.planning-danse-plugin-wrapper .planning-body,
.planning-danse-plugin-wrapper .planning-headers {
    scrollbar-width: thin;
    scrollbar-color: #cbcbcb #a3a3a3;
}

/* S'assurer que les largeurs des colonnes correspondent */
.planning-danse-plugin-wrapper .planning-table tr,
.planning-danse-plugin-wrapper .planning-table td {
    transition: all 0.3s ease-in-out;
}

/* Cellules */
.planning-danse-plugin-wrapper .planning-table td {
    padding: 1px 5px !important;
    text-align: center;
    transition: background-color: 0.3s ease;
}

.planning-danse-plugin-wrapper .planning-table .time-cell {
    font-size: 0.85em;
    white-space: nowrap;
    font-weight: 500;
    color: #888;
    opacity: 1 !important;
    display: table-cell !important;
    border:none !important;
}

.planning-danse-plugin-wrapper .planning-table th:not(.time-header),
.planning-danse-plugin-wrapper .planning-table th:not(.studio-row-first),
.planning-danse-plugin-wrapper .planning-table td:not(.time-cell) {
    width: var(--collumn-width) !important;
    min-width: var(--collumn-width);
}

.planning-danse-plugin-wrapper .planning-table .time-cell, 
.planning-danse-plugin-wrapper .planning-table .studio-row-first, 
.planning-danse-plugin-wrapper .planning-table .time-header {
    width: var(--time-collumn-width) !important;
    min-width: var(--time-collumn-width) !important;
    left: 0;
    z-index: 2;
}







.planning-danse-plugin-wrapper .planning-table .course {
    padding: 4px 6px !important;
    vertical-align: middle;
    border-radius: 8px;
    min-width:100px;
    z-index:1;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: 0.8em;
    border:none !important;
    overflow: visible !important;
}

.planning-danse-plugin-wrapper .planning-table .course:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index:10;
}
.planning-danse-plugin-wrapper .planning-table .course:hover .course-line {
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.planning-danse-plugin-wrapper .course.hovered {
    z-index: 100;
}

/* Effet de brillance sur hover */
.planning-danse-plugin-wrapper .planning-table .course::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.planning-danse-plugin-wrapper .planning-table .course:hover::after {
    opacity: 1;
}

.planning-danse-plugin-wrapper .planning-table .course-line {
    margin: 1px 0;
    font-size: 0.9em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.planning-danse-plugin-wrapper .planning-table .course > .course-line:first-child,
.planning-danse-plugin-wrapper .planning-table .course > .ribbon-wrapper + .course-line {
    font-weight: 600;
    font-size: 1em;
}

.planning-danse-plugin-wrapper .planning-table .empty-cell {
    border:none !important;
    transition: background-color: 0.3s ease;
}

.planning-danse-plugin-wrapper .planning-table td.hidden-day,
.planning-danse-plugin-wrapper .planning-table th.hidden-day {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.planning-danse-plugin-wrapper .planning-table tr {
    display: table-row;
    width: 100%;
}

.planning-danse-plugin-wrapper .planning-table td,
.planning-danse-plugin-wrapper .planning-table th {
    border-collapse: collapse;
    box-sizing: border-box;
}

/* Maintenir l'alignement des colonnes */
.planning-danse-plugin-wrapper .planning-table td:not([data-day]),
.planning-danse-plugin-wrapper .planning-table th:not([data-day]) {
    display: table-cell;
    visibility: visible !important;
}

/* Style du ruban COMPLET */
.planning-danse-plugin-wrapper .ribbon-wrapper {
    width: 110px;
    height: 110px;
    overflow: hidden;
    position: absolute;
    top: -0px;
    right: -0px;
    z-index: 15;
}

.planning-danse-plugin-wrapper .ribbon {
    font-size: 0.7em;
    font-weight: bold;
    text-transform: lowercase;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 20px;
    background-color: #ff0000;
    color: white;
    width: 90px;
    position: relative;
    right: -45px;
    top: 10px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.5);
    animation: ribbon-appear 0.3s ease-out;
}

.planning-danse-plugin-wrapper .ribbon:before, 
.planning-danse-plugin-wrapper .ribbon:after {
    content: '';
    position: absolute;
    bottom: -5px;
    border-top: 5px solid #800000;
    border-bottom: 5px solid transparent;
}

.planning-danse-plugin-wrapper .ribbon:before {
    left: 0;
    border-left: 5px solid transparent;
}

.planning-danse-plugin-wrapper .ribbon:after {
    right: 0;
    border-right: 5px solid transparent;
}

/* Style de l'icône No Spectacle */
.planning-danse-plugin-wrapper .course {
    overflow: visible !important;
}

.planning-danse-plugin-wrapper .no-spectacle-icon {
    position: absolute;
    bottom: 5px;
    left: 0px;
    width: 26px;
    height: 16px;
    cursor: help;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 15;
}

.planning-danse-plugin-wrapper .no-spectacle-icon svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.planning-danse-plugin-wrapper .no-spectacle-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Tooltip */
.planning-danse-plugin-wrapper .no-spectacle-icon:before {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.planning-danse-plugin-wrapper .no-spectacle-icon:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 6px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
    border-top-color: transparent;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20;
}

.planning-danse-plugin-wrapper .no-spectacle-icon:hover:before,
.planning-danse-plugin-wrapper .no-spectacle-icon:hover:after {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Style de la photo du professeur */
.planning-danse-plugin-wrapper .teacher-photo-wrapper {
    position: absolute;
    bottom: -3px;
    right: 5px;
    z-index: 20;
}
.planning-danse-plugin-wrapper .teacher-photo-wrapper:hover {
    z-index: 120;
}

.planning-danse-plugin-wrapper .teacher-photo {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;    
    transition: all 0.3s ease;
}

.planning-danse-plugin-wrapper .teacher-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.planning-danse-plugin-wrapper .teacher-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: -20px;
    background: rgb(0 0 0 / 90%);
    border-radius: 8px;
    padding: 12px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) translateZ(0);
    -webkit-transform: translateY(10px) translateZ(0);
    transition: all 0.3s ease;
    z-index: 150;
    width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.planning-danse-plugin-wrapper .teacher-tooltip-content {
    display: flex;
    position: relative;
    align-items: center;
    gap: 12px;
    z-index: 151;
}

.planning-danse-plugin-wrapper .teacher-tooltip-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.planning-danse-plugin-wrapper .teacher-tooltip-info {
    flex: 1;
    color: white;
}

.planning-danse-plugin-wrapper .teacher-tooltip-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.planning-danse-plugin-wrapper .teacher-profile-link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
}

.planning-danse-plugin-wrapper .teacher-tooltip-link {
    font-size: 12px;
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.planning-danse-plugin-wrapper .teacher-tooltip:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.9);
}

.planning-danse-plugin-wrapper .teacher-link:hover .teacher-photo {
    transform: scale(1.1);
    border-color: white;
}

.planning-danse-plugin-wrapper .teacher-link:hover .teacher-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) translateZ(0);
    -webkit-transform: translateY(0) translateZ(0);
}

.planning-danse-plugin-wrapper .teacher-link:hover .teacher-tooltip-link {
    opacity: 1;
}

.planning-danse-plugin-wrapper .course[data-category-tooltip] {
    position: relative;
}

.planning-danse-plugin-wrapper .course[data-category-tooltip]:before {
    content: attr(data-category-tooltip);
    position: absolute;
    width:100px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgb(255 255 255 / 90%);
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    line-height:1.5em;
    white-space: normal;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0px 5px 15px #00000036;
}

.planning-danse-plugin-wrapper .course[data-category-tooltip]:hover:before {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
}

/* Styles pour le filtrage */
.planning-danse-plugin-wrapper .planning-table td.course {
    transition: opacity 0.3s ease;
}

.planning-danse-plugin-wrapper .planning-table td.empty-cell {
    visibility: visible !important;
}

.planning-danse-plugin-wrapper .planning-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.planning-danse-plugin-wrapper .filter-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    
}

.planning-danse-plugin-wrapper .category-filter {
    
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important; /* CORRECTION: Ajout de !important pour forcer la couleur du texte */
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 250px;
    max-width: 250px;
   
}

/* CORRECTION: Style pour les options dans le select */
.planning-danse-plugin-wrapper .category-filter option {
    background-color: #333;
    color: #ffffff;
}

.planning-danse-plugin-wrapper .category-filter:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.planning-danse-plugin-wrapper .category-filter:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    color: #fff;
}

.planning-danse-plugin-wrapper .category-filter {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.planning-danse-plugin-wrapper .days-filter {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.planning-danse-plugin-wrapper .days-filter::-webkit-scrollbar {
    display: none;
}

.planning-danse-plugin-wrapper .day-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    min-width: auto;
    flex-shrink: 0;
    min-width:90px;
    font-size: 0.85em;
    white-space: nowrap;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.planning-danse-plugin-wrapper .day-toggle.active {
   background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: #ffffff;
}

.planning-danse-plugin-wrapper .day-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.planning-danse-plugin-wrapper .day-toggle.active:hover {
    background: rgba(255, 255, 255, 1);
}

.planning-danse-plugin-wrapper .day-toggle input {
    display: none;
}

.planning-danse-plugin-wrapper .day-toggle svg {
    width: 14px;
    height: 14px;
}

.planning-danse-plugin-wrapper .day-toggle.active svg {
    transform: scale(1.1);
}

.planning-danse-plugin-wrapper .planning-table.filtered .hidden-cell,
.planning-danse-plugin-wrapper .planning-table.filtered .hidden-course,
.planning-danse-plugin-wrapper .planning-table.filtered .hidden-row {
    display: none;
}

/* Bouton de réservation */
.planning-danse-plugin-wrapper .book-trial {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px;
    border-radius: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.planning-danse-plugin-wrapper .course:hover .book-trial {
    opacity: 1;
}

.planning-danse-plugin-wrapper .book-trial.selected {
    background: #4CAF50;
    color: white;
    opacity: 1;
}

/* Panier */
.planning-danse-plugin-wrapper .booking-cart {
    position: fixed;
    top:0px;
    right: -350px;
    padding-top:80px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 90000;
    color: #333;
    font-size: 14px;
    border-radius: 0px!important;
}

.planning-danse-plugin-wrapper .booking-cart-toggle {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.planning-danse-plugin-wrapper .booking-cart-toggle svg {
    width: 24px;
    height: 24px;
    color: #373737;
}

.planning-danse-plugin-wrapper .booking-cart-toggle .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #de2048;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.planning-danse-plugin-wrapper .booking-cart-toggle:hover {
    transform: scale(1.1);
}

.planning-danse-plugin-wrapper .booking-cart.open + .booking-cart-toggle {
    display: none;
}

.planning-danse-plugin-wrapper .booking-cart.open {
    right: 0;
}

.planning-danse-plugin-wrapper .cart-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    border-radius: 10px 10px 0 0 !important;
}

.planning-danse-plugin-wrapper .close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

.planning-danse-plugin-wrapper .cart-items {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.planning-danse-plugin-wrapper .cart-item {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.planning-danse-plugin-wrapper .cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: -1;
}

.planning-danse-plugin-wrapper .cart-item h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #333;
    padding-right: 25px;
    padding-bottom:0px;
}

.planning-danse-plugin-wrapper .cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.planning-danse-plugin-wrapper .cart-item p {
    margin: 1px 0;
    color: #666;
    font-size: 14px;
    padding-bottom:0px;
}

.planning-danse-plugin-wrapper .cart-item .no-spectacle-text {
    font-size: 12px;
    color: #ff1e1e;
    font-style: italic;
}

.planning-danse-plugin-wrapper .remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ff4444;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.planning-danse-plugin-wrapper .remove-item:hover {
    opacity: 1;
}

.planning-danse-plugin-wrapper .cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #f8f8f8;
    border-radius: 0px 0px 10px 10px !important;
}

.planning-danse-plugin-wrapper .cart-count {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.planning-danse-plugin-wrapper .validate-booking {
    background: #de2048;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px;
    font-size: 15px;
    width: 100%;
    margin-top:10px;
    cursor: pointer;
    transition: background-color: 0.2s;
}

.planning-danse-plugin-wrapper .validate-booking:hover {
    background: #45a049;
}

.planning-danse-plugin-wrapper .validate-booking:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Modal */
.planning-danse-plugin-wrapper .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-top:80px;
}

.planning-danse-plugin-wrapper .modal.show {
    display: block;
    opacity: 1;
}

.planning-danse-plugin-wrapper .modal-content {
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.planning-danse-plugin-wrapper .modal.show .modal-content {
    transform: translateY(0);
}

.planning-danse-plugin-wrapper .modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.planning-danse-plugin-wrapper .selected-course {
    position: relative;
    line-height:0.9;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.planning-danse-plugin-wrapper .selected-course .no-spectacle-text {
    font-size: 12px;
    color: #ff1e1e;
    font-style: italic;
}

.planning-danse-plugin-wrapper .selected-course::before {
    content: '';
    position: absolute;
    border-radius: 6px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: -1;
}

.planning-danse-plugin-wrapper .selected-course:last-child {
    margin-bottom: 20px;
}

.planning-danse-plugin-wrapper .selected-course h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size:14px;
}

.planning-danse-plugin-wrapper .selected-course p {
    margin: 5px 0;
    color: #666;
    font-size:12px;
}

.planning-danse-plugin-wrapper .form-field {
    margin-bottom: 5px;
}

.planning-danse-plugin-wrapper .form-field label {
    display: block;
    margin-bottom: 2px;
    color: #333;
    font-weight: 500;
}

.planning-danse-plugin-wrapper .form-field input,
.planning-danse-plugin-wrapper .form-field textarea {
    width: 100%;
    height:30px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.planning-danse-plugin-wrapper .form-field input:focus,
.planning-danse-plugin-wrapper .form-field textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.planning-danse-plugin-wrapper .modal-content button[type="submit"] {
    background: #de2048;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 25px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color: 0.2s;
}

.planning-danse-plugin-wrapper .modal-content button[type="submit"]:hover {
    background: #de2048;
}

/* Animation de chargement */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ribbon-appear {
    from {
        opacity: 0;
        transform: rotate(45deg) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: rotate(45deg) translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .planning-danse-plugin-wrapper .filter-group {
        justify-content: center;
        gap: 8px;
        
        
    }
    .planning-danse-plugin-wrapper .category-filter {
        min-width: 180px;
        
       
    }
    .planning-danse-plugin-wrapper .planning-body{
         margin-top: 10px; 
    }
    .planning-danse-plugin-wrapper .planning-table .time-cell, 
    .planning-danse-plugin-wrapper th.studio-row-first, 
    .planning-danse-plugin-wrapper th.time-header{
        width: var(--time-collumn-width) !important;
    }
}

@media screen and (max-width: 1024px) {
    .planning-danse-plugin-wrapper .planning-table {
        font-size: 0.8m;
        
    }
    .planning-danse-plugin-wrapper .teacher-photo {
        width: 20px;
        height: 20px;
    }

    .planning-danse-plugin-wrapper .planning-body{
         margin-top: 10px; 
    }
   .planning-danse-plugin-wrapper .planning-table .time-cell, 
   .planning-danse-plugin-wrapper th.studio-row-first, 
   .planning-danse-plugin-wrapper th.time-header{
        width: var(--time-collumn-width) !important;
    }
}

@media screen and (max-width: 768px) {
    .planning-danse-plugin-wrapper .planning-container {
        padding-top: 180px !important;
    }

    .planning-danse-plugin-wrapper .planning-body{
         margin-top: 0px; 
    }
    
    .planning-danse-plugin-wrapper .planning-body::-webkit-scrollbar,
    .planning-danse-plugin-wrapper .planning-headers::-webkit-scrollbar {
        height: 6px;
    }
    .planning-danse-plugin-wrapper .planning-header {
        padding: 5px 5px 0 5px;
    }
    
    .planning-danse-plugin-wrapper .planning-table {
        font-size: 0.8em;
    }

    .planning-danse-plugin-wrapper .planning-table .header-table,
    .planning-danse-plugin-wrapper .planning-table {
        min-width: var(--planning-min-width-768);
    }
    .planning-danse-plugin-wrapper .planning-table .time-cell, 
    .planning-danse-plugin-wrapper th.studio-row-first, 
    .planning-danse-plugin-wrapper th.time-header{
        width: var(--time-collumn-width) !important;
    }
    
    .planning-danse-plugin-wrapper .time-cell,
    .planning-danse-plugin-wrapper .time-header {
        left: 0;
        z-index: 2;
        background: inherit;
    }
    
    .planning-danse-plugin-wrapper .planning-table th:not(.time-header),
    .planning-danse-plugin-wrapper .planning-table td:not(.time-cell):not(.empty-cell) {
        width: 140px;
        min-width: 140px;
    }
    
    .planning-danse-plugin-wrapper .planning-filters {
        padding: 5px;
         
    }

    .planning-danse-plugin-wrapper .filter-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .planning-danse-plugin-wrapper .category-filter {
        padding: 6px 8px;
       
        min-width: unset;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background-size: 12px;
        background-position: right 5px center;
        padding-right: 20px;
        max-width:none;
    }

    .planning-danse-plugin-wrapper .course {
        height: 100%;
        padding: 4px 3px !important;
        font-size: 0.8em;
        white-space: normal !important;
    }
    
    .planning-danse-plugin-wrapper .teacher-photo {
        width: 18px;
        height: 18px;
    }

    .planning-danse-plugin-wrapper .planning-container::after {
        content: '← Faites défiler →';
        display: block;
        text-align: center;
        padding: 12px;
        background: rgba(26, 26, 26, 0.95);
        color: #fff;
        position: sticky;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 0.8em;
        backdrop-filter: blur(5px);
        animation: fadeIn 0.5s ease-out;
        z-index: 3;
    }
    .planning-danse-plugin-wrapper .teacher-tooltip {
        z-index: 200;
    }
    .planning-danse-plugin-wrapper .booking-cart {
        width: 100%;
        right: -100%;
    }
    
    .planning-danse-plugin-wrapper .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .planning-danse-plugin-wrapper .course.touch-active {
        z-index: 105 !important;
    }

    .planning-danse-plugin-wrapper .ribbon-wrapper {
        width: 75px;
        height: 75px;
    }
    
    .planning-danse-plugin-wrapper .ribbon {
        font-size: 0.6em;
        line-height: 15px;
        width: 100px;
        right: -20px;
        top: 12px;
    }

    .planning-danse-plugin-wrapper .no-spectacle-icon:before {
        font-size: 0.8em;
        padding: 6px 10px;
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }
    
    .planning-danse-plugin-wrapper .days-filter {
        margin: 0 -5px;
        padding: 0 5px;
    }
    
    .planning-danse-plugin-wrapper .day-toggle {
        padding: 3px 6px;
        font-size: 0.8em;
    }
    
    .planning-danse-plugin-wrapper .day-toggle svg {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 480px) {
    .planning-danse-plugin-wrapper .days-filter {
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: wrap; 
    }
   
    .planning-danse-plugin-wrapper .planning-table .time-cell, 
    .planning-danse-plugin-wrapper th.studio-row-first, 
    .planning-danse-plugin-wrapper th.time-header{
        width: var(--time-collumn-width) !important;
    }
}

@media screen and (max-width: 380px) {
    .planning-danse-plugin-wrapper .filter-group {
        grid-template-columns: 1fr;
        
    }
    
    .planning-danse-plugin-wrapper .planning-container {
        padding-top: 230px !important;
    }

    .planning-danse-plugin-wrapper .category-filter {
        font-size: 0.8em;
        padding: 5px 6px;
    }
   
    .planning-danse-plugin-wrapper .planning-table .time-cell, 
    .planning-danse-plugin-wrapper th.studio-row-first, 
    .planning-danse-plugin-wrapper th.time-header{
        width: var(--time-collumn-width) !important;
    }
}

@media (hover: none) {
    .planning-danse-plugin-wrapper .planning-container {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .planning-danse-plugin-wrapper .course-line {
        font-weight: 400;
    }
}

@media (hover: hover) {
    .planning-danse-plugin-wrapper .course[data-category-tooltip]:hover:before {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }

    .planning-danse-plugin-wrapper .course:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .planning-danse-plugin-wrapper .course:hover .book-trial {
        opacity: 1;
    }

    .planning-danse-plugin-wrapper .teacher-link.has-profile {
        cursor: pointer;
    }
    
    .planning-danse-plugin-wrapper .teacher-link.has-profile:hover .teacher-tooltip {
        visibility: visible;
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@media (hover: none) {
    .planning-danse-plugin-wrapper .course.touch-active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 100 !important;
    }

    .planning-danse-plugin-wrapper .course.touch-active .book-trial {
        opacity: 1 !important;
        visibility: visible !important;
        transition: none;
        bottom: 3px;
        pointer-events: auto;
    }

    .planning-danse-plugin-wrapper .book-trial {
        bottom: 3px;
        opacity: 0;
        visibility: hidden;
    }

    .planning-danse-plugin-wrapper .course:hover {
        transform: none;
        box-shadow: none;
    }

    .planning-danse-plugin-wrapper .course:hover .book-trial {
        opacity: 0;
        visibility: hidden;
    }
}

.planning-danse-plugin-wrapper .teacher-profile-link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
}

.planning-danse-plugin-wrapper .teacher-link.touch-active .teacher-tooltip {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) translateZ(0) !important;
}

.planning-danse-plugin-wrapper .teacher-link.touch-active {
    z-index: 150 !important;
}

.planning-danse-plugin-wrapper .planning-table td[data-day].hidden-day,
.planning-danse-plugin-wrapper .planning-table th[data-day].hidden-day {
    display: none;
}

.planning-danse-plugin-wrapper .planning-table td[data-day],
.planning-danse-plugin-wrapper .planning-table th[data-day] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
