/* Thème personnalisé DaisyUI */
:root {
    --p: 229 62% 24%; /* primary: #181e64 */
    --pf: 229 62% 19%; /* primary-focus (plus foncé) */
    --pc: 0 0% 100%; /* primary-content: blanc */

    --s: 197 79% 69%; /* secondary: #72ccf1 */
    --sf: 197 79% 59%; /* secondary-focus (plus foncé) */
    --sc: 229 62% 24%; /* secondary-content: #181e64 */
}

/* Override DaisyUI btn-primary */
.btn-primary {
    --btn-color: #181e64;
    background-color: #181e64;
    border-color: #181e64;
    color: #fff;
}

.btn-primary:hover {
    background-color: #12174d;
    border-color: #12174d;
}

/* Override DaisyUI btn-secondary */
.btn-secondary {
    --btn-color: #72ccf1;
    background-color: #72ccf1;
    border-color: #72ccf1;
    color: #181e64;
}

.btn-secondary:hover {
    background-color: #5bc0ed;
    border-color: #5bc0ed;
}

.join-item.btn.btn-primary {
    border-color: #72ccf1;
    background: #fff;
    color: #000;
}

.form-input {
    font-size: 14px;
}

.form-input, select.select {
    font-size: 14px;
    border-color: oklab(0.21 0.00164224 -0.00577088 / 0.2);
}

fieldset.fieldset {
    padding: 0;
}

a.active {
    color: #181e64;
}

div.ts-wrapper .ts-control {
    padding: 9px 8px 10px 8px;
    font-size: 14px;
}

.form-input {
    min-height: 40px;
    border-radius: 4px;
}

legend.fieldset-legend {
    padding: 0;
}

#pdf-controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: white;
}

#pdf-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tom-select-inscription .ts-control {
    margin-top: 4px;
    border-radius: 5px;
    min-height: 40px;
}

#pdf-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

#pdf-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pdf-viewer-container {
    overflow: hidden;
    background: #525252;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

#book-container {
    display: flex;
    gap: 20px;
    position: relative;
    transition: transform 0.6s ease-in-out;
}

.page-wrapper {
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: white;
}

.page-canvas {
    display: block;
}

/* Animation de tournage de page */
@keyframes pageFlipLeft {
    0% {
        transform: rotateY(0deg);
        z-index: 2;
    }
    50% {
        transform: rotateY(-90deg);
        z-index: 2;
    }
    100% {
        transform: rotateY(-180deg);
        z-index: 1;
    }
}

@keyframes pageFlipRight {
    0% {
        transform: rotateY(-180deg);
        z-index: 1;
    }
    50% {
        transform: rotateY(-90deg);
        z-index: 2;
    }
    100% {
        transform: rotateY(0deg);
        z-index: 2;
    }
}

.flipping-left {
    animation: pageFlipLeft 0.8s ease-in-out;
    transform-origin: left center;
}

.flipping-right {
    animation: pageFlipRight 0.8s ease-in-out;
    transform-origin: right center;
}

input.checkbox {
    margin-top: 16px;
}