* {
    box-sizing: border-box;
}

body {
    /* background-color: rgb(143, 255, 167); */
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #222;
    line-height: 1.6; 
}







/* -----------------------------
   MAIN CONTAINER
----------------------------- */

.container {
    padding: 32px;
}

main {
    background-color: #e1ecf2;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    box-sizing: border-box; 
}


a {
    color: blue;
}





/*
User entry TEXT SQL
*/

.user-entry {
    white-space: pre-line;
}


/* Livres */

.toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

input {
    padding: 10px;
    width: 300px;
}

button {
    padding: 10px 16px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

button:hover {
    background: #1d4ed8;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: #f3f4f6;
    cursor: pointer;
}

tr:hover {
    background: #fafafa;
}




/* Version */

.version {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #6c757d;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.download-button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.version-user {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;  
}

.version-references {
    gap: 10px;
    margin-top: 8px;
}

.version-book {
    color: #212529; /* Dark text for contrast */
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}






/* ----------------------- */
/* COUPLAGES  CREATE       */
/* ----------------------- */



fieldset {
    margin-bottom: 15px;
    border: none;
    padding: 0;
}
fieldset legend {
    font-weight: bold;
    margin-bottom: 5px;
}
input[type="radio"] {
    margin-right: 8px;
}






/* ----------------------- */
/* COUPLAGES */
/* ----------------------- */

.large-comment {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin: 10px 0;
    box-sizing: border-box;
}

.lecon-comment {
    width: 100%;
    min-height: 50px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin: 10px 0;
    box-sizing: border-box;
}

.lecon-switcher {
    display: flex;
    border: 1px solid black;
    gap: 8px;              
    padding: 4px;
    border-radius: 20px;
    background: #f0f0f0;    
}

.switcher-state {
    cursor: pointer;  
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.switcher-state:hover {
    background: #e0e0e0; 
}

.switcher-state.active {
    background: #4CAF50;  
    color: white;
}




.stars_editable {
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    color: #ccc; /* Couleur des étoiles vides */
}
.stars_editable .filled {
    color: #FFD700; /* Or pour les étoiles pleines */
}
.stars_editable:hover .star {
    color: #FFD700; /* Survol = étoile dorée */
}

.stars-local-editable {
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    color: #ccc; /* Couleur des étoiles vides */
}
.stars-local-editable .filled {
    color: #FFD700; /* Or pour les étoiles pleines */
}
.stars-local-editable:hover .star {
    color: #FFD700; /* Survol = étoile dorée */
}


.recasage-selector-lecon.used {
    background-color: rgb(255, 129, 129);
}


.dvpt-add-option.used {
    background-color: rgb(255, 129, 129);
}



.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
}


.action {
    background: #2563eb;
    color: white;
    padding: 6px;
    border-radius: 10px;
    cursor: pointer;
}

.action:hover {
    background: #1d4ed8;
}




.couplage-recap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.couplage-recap div {
    border-radius: 8px;
    width: 80px;
    height: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    transition: transform 0.2s, box-shadow 0.2s;
}

.couplage-recap div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.couplage-recap a {
    width: 100%;
    height: 100%;
    display: block;
    color: black;
    text-decoration: none;
    line-height: 40px;
}

.couplage-recap div.lecon-status- {
    background-color: white
}

.couplage-recap div.lecon-status-0 {
    background-color: #9999991a;
}

.couplage-recap div.lecon-status-1 {
    background-color: #FF3450BA;
    /* background-color: #fc7474; */
}

.couplage-recap div.lecon-status-2 {
    background-color: #FFA500;
    /* background-color: orange; */
}

.couplage-recap div.lecon-status-3 {
    background-color: #52CD4E;
    /* background-color: #a3c973; */
}