 /* =========================
   Page d'accueil - Fond noir et formulaire vertical
=========================== */

body {
    background-color: black;
    font-family: Arial, sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}


.index-container h1 {
    font-size: 2em;
    margin-bottom: 30px;
    background-color: black;
    color: white;
}

.index-vertical-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    width: 400px;
}

.index-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%
}

.index-form-group label {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.index-form-group input {
    width: 400px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #F9F8FA;	/* #999; */
    color: black;
    font-size: 15px;
    box-sizing: border-box;
}

/* Bouton Submit de la page d'accueil uniquement */
.index-vertical-form button[type="submit"] {
    width: 100%;
    max-width: 400px; /* Même largeur que les champs */
    margin: 0 auto;
    background-color: #007BFF; /* Bleu */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px; /* Hauteur proportionnée */
    font-size: 20px; /* Taille de police adaptée */
    font-weight: bold;
    cursor: pointer;
    display: block; /* Pour le centrage avec margin: 0 auto */
}

/* Effet au survol (optionnel) */
.index-vertical-form button[type="submit"]:hover {
    background-color: #0056b3; /* Bleu plus foncé */
}

.submit-btn {
    background-color: #FF0000; //#007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 40px;
    cursor: pointer;
    width: 400px;
    margin-top: 30px;
}

.submit-btn:hover {
    background-color: #FF0000;  //#0056b3;
}

/* =========================
   CSS Grid Layout Result page
=========================== */


.main-layout {
    display: grid;
    grid-template-columns: 1100px 250px;
    grid-template-rows: auto auto 1fr auto;
    gap: 1px;		/* Espacement entre les lignes  formely 10px Nothing changed! */
    padding: 5px;	/* formerly 20px Nothing changed! */
    max-width: 1400px;
    margin: 0 auto;				/* Centre le layout mais sans marges blanches */
    background-color: black;
    color: white;
	width: 100%;				/* Prend toute la largeur disponible */
	box-sizing: border-box;		/* inclut le padding dans la largeur totale */
}

/* =========================
   Titre principal (ligne 1)
=========================== */
.main-layout h2 {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 1.5em;
    margin: 0;
}

/* =========================
   Gene Info (ligne 2, colonne 1)
=========================== */
.gene-info {
    grid-column: 1;
    padding: 15px;
    background-color: black;
    border-radius: 5px;
    width: 100%;
}

.gene-info .row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.gene-info .column2 {
    flex: 1;
    padding: 0;
    box-sizing: border-box;
}

.gene-info p {
    color: white !important;
    margin: 4px 0;
    display: flex;
    align-items: flex-start;
    white-space: normal;
    word-break: break-word;
}

.gene-info p strong {
    width: 250px;
    text-align: left;
    margin-right: 10px;
    font-weight: bold;
    white-space: normal;
}

.gene-info p span {
    flex: 1;
    word-break: break-word;
    min-width: 0;
}

/* =========================
   Radio Buttons "Color" (2 colonnes, fond noir)
=========================== */
.color-controls {
    background: black;
    padding: 10px;
    border-radius: 5px;
}

.color-controls p {
    margin: 0 0 10px 0;
    color: white;
    font-weight: bold;
}

.color-controls .radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.color-controls label {
    display: block;
    color: white;
    padding: 4px 0;
    cursor: pointer;
}

.color-controls input[type="radio"] {
    margin-right: 5px;
    accent-color: #007BFF;
}

/* =========================
   Panel droit (ligne 2, colonne 2)
=========================== */
.right-panel {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 0px;			/* Space between radio buttons and action buttons (Color, Species and both) formely 20px */
    min-width: 180px;
}

.action-buttons {
    background: black;
    padding: 0px;		/* space below "Color", "Species" and "Both" bottom */
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
}

.action-buttons button {
    width: 70px;			/* Formely auto */
    padding: 6px 10px;
    font-size: 13px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    min-width: 0;
}

/* =========================
   Tableau (ligne 3, colonne 1)
=========================== */
#alignment-table {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    border: 2px solid black;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* =========================
   Checkboxes Espèces (ligne 3, colonne 2)
=========================== */
.species-checkboxes {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 2px;					/* Space between specie names */
    padding: 12px 10px;			/* First padding number controls where "Species" is in term of heigth */
    background-color: black;
    border-radius: 5px;
    height: 100%;
    max-height: 600px;
    overflow-y: auto;
}

.species-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: white;
    font-size: 13px;
    padding: 2px 0;
    margin: 0;
}

.species-checkboxes p {
    margin: 0 0 5px 0;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.species-checkboxes input[type="checkbox"] {
    margin: 0;
    transform: scale(0.9);
}

/* =========================
   Boutons d'action (ligne 4, colonne 1) - Modifié
=========================== */
.actions {
    grid-column: 1;
    grid-row: 4;
    display: flex;
    gap: 0;
    padding: 0px 0;		/* Padding vertical */
    width: 100%;
}

.actions .row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    gap: 0;
}

.actions .column {
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #555;
}

.actions .column:last-child {
    border-right: none;
}

.actions .column form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions input[type="number"] {
    flex: 1;
    min-width: 0;
    min-width: 150px; /* Largeur minimale pour le placeholder */
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.actions button {
    background-color: #007BFF !important;
    color: white !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 16px;
    white-space: nowrap;
    width: auto;
}

/* =========================
   Bouton Exit (ligne 4, colonne 2)
=========================== */
.exit-button {
    grid-column: 2 !important;
    grid-row: 4 !important;
    padding: 15px 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.exit-button button {
    background-color: red ;
    color: white ;
    border: none ;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 16px;
} 

