html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9 !important;
}
.navbar {
    border-bottom: 1px solid #ccc;
}
.container {
    display: flex;
    flex-direction: row;
    max-width: 1200px; /* Largeur totale */
    overflow: hidden; /* Empêche les débordements */
    height: 100%;
}

.navbar-brand {
    margin-left: 20vh;
}

/* Style général pour la zone de conversation */
#panel_previousConv {
    flex: 1;
    max-width: 250px;
}
#panel_previousConv h2 {
    padding: 10px;
    font-size: larger;
}
#panel_previousConv ul {
    padding-left: 0rem;
}
#panel_previousConv ul li {
    list-style-type: none;
    font-size: small;
    width: 98%;
    background: #eee;
    text-align: left;
    border-radius: 5px;
    text-decoration: none;
    color: black;
    display: inline-block;
    padding: 5px;
    margin: 1px;
}
#panel_previousConv ul li:hover {
    background: #ddd;
}
#panel_previousConv ul li a {
    font-size: small;
    text-decoration: none;
    color: black;
}
#panel_previousConv ul li.active {
    background: #ddd;
}
#panel_previousConv ul li a:hover {
    background: #ddd;
}
#panel_previousConv ul li a.active {
    background: #ddd;
}
#btn_saveNewConv, #btn_newConv {
    margin: 5px;
    padding: 5px;
  font-size: small;
  color: #fff;
  background-color: #20A39E;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#btn_saveNewConv::not(:disabled), #btn_newConv::not(:disabled) {
    background-color: #1B8682;
}
#btn_saveNewConv:disabled, #btn_newConv:disabled {
    background-color: #d4f1f0;
    cursor: not-allowed;
}
.delete-conv {
    border: none;
  text-decoration: none;
  background: none;
  float: right;
  opacity: 0.1;
}
.delete-conv:hover {
    opacity: 0.8;
}

#conv {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*height: 80vh;
    width: 150%;*/
    margin: 0 auto;
    background-color: #f9f9f9;
    overflow: hidden;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* Zone d'historique */
#historique {
    flex: 1;
    overflow-y: auto;
    /*padding: 16px;*/
    background-color: #ffffff;
}

.reponses {
    /*margin-bottom: 12px;*/
}

.reponse_user, .reponse_ia {
    /*margin: 8px 0;*/
    padding: 10px;
    /*border-radius: 8px;*/
    /*max-width: 75%;*/
    border-bottom: 1px solid #ccc;
    /*padding-top: 18px;
    padding-bottom: 18px;*/
}
.reponse_user::before {
    content: attr(data-label); /* Utilise l'attribut data-label pour le contenu du tag */
    position: relative;
    top: -8;
    left: 0;
    background-color: #007bff69; /* Couleur de fond du tag */
    color: #fff; /* Couleur du texte du tag */
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
    z-index: 1;
}
.reponse_ia::before {
    content: attr(data-label); /* Utilise l'attribut data-label pour le contenu du tag */
    position: relative;
    top: -8;
    left: 0;
    background-color: #ff480069; /* Couleur de fond du tag */
    color: #fff; /* Couleur du texte du tag */
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
    z-index: 1;
}

.reponse_user {
    align-self: flex-end;
    /*background-color: #e0f7fa;*/
    /*color: #00796b;*/
    /*text-align: right;*/
}

.reponse_ia {
    align-self: flex-start;
    /*background-color: #e8f5e9;*/
    /*color: #388e3c;*/
}

/* Style pour les bulles de texte */
.reponse_user p, .reponse_ia p {
    margin: 0;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.5;
}

/* Zone de question */
#question {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ccc;
    background-color: #f1f1f1;
}

#question_input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    margin-right: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

#question_btn {
    padding: 10px 16px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#question_btn:disabled {
    background-color: #a9d0f5;
    cursor: not-allowed;
}

#question_btn:hover:not(:disabled) {
    background-color: #0056b3;
}

#struct_prompt {
    padding: 10px 16px;
    font-size: 16px;
    color: #fff;
    background-color: #8d8e8e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 5px;
    font-size: smaller;
}
#struct_prompt:hover {
    background-color: #6b6c6c;
}
.hidden {
    display: none;
}

.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.popup-content {
    background-color: #fefefe;
    margin: 1% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    max-width: 50%; /* Could be more or less, depending on screen size */
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-content textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
}
.popup-content button {
    padding: 10px 16px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}
.popup-content button:hover {
    background-color: #0056b3;
}
#structured_inputs {
    flex: 1;
    margin-right: 8px;
}
#structured_inputs input {
    display: block;
    margin-bottom: 5px;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    margin-right: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Surlignage simple */
.highlight {
    background-color: #ffeaa7;
    border-radius: 4px;
    padding: 2px 4px;
    cursor: pointer;
}

/* Annotation avec commentaire */
.annotation {
    margin-top: 10px;
    margin-left: 3px;
    font-size: small;
    background-color: #ffffff;
    padding: 10px;
    /*border-left: 4px solid #74b9ff;*/
    border-radius: 5px;
    border: 1px solid #D4D4DF;
    transition: border 0.3s;
}

.annotation .highlight {
    cursor: auto;
}
.annotation .texteAnnote {
    font-style: italic;
    padding-left: 6px;
    border-left: 3px solid #ff480069; /* 74b9ff */
    color: #454545;
    cursor: pointer;
}
.annotation:hover {
    border: 1px solid #a5a5a8;
}
/* Zone des annotations */
#panel_annotations {
    flex: 1; /* Prend 1/3 de la largeur */
    max-width: 250px;
    overflow-y: auto;
    margin: 0 auto;
    background-color: #f9f9f9;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

}
#panel_annotations h2 {
    padding: 10px;
    font-size: larger;
}
.note {
    margin-top: 10px;
    width: 100%;
    font-size: 1.1em;
}
.note input {
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 2px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 5px;
}
.note button {
    margin-top: 5px;
    padding: 5px;
    color: #fff;
    background-color: #20A39E;
    border: none;
    border-radius: 4px;
}
.btn_del_annotation {
    float: right;
    border: none;
    background: none;
    opacity: 0.2;
}
.btn_del_annotation:hover {
    opacity: 0.8;
}

.content_panel {
    flex: 1;
    overflow-y: auto;
    /*padding: 16px;*/
}
.commandes {
    padding: 12px;
    text-align: right;
}
.commandes button {
    padding: 5px;
    margin: 5px;
  font-size: small;
  color: #fff;
  background-color: #20A39E;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.commandes button:hover {
    background-color: #1B8682;
}
#content_panel_annotations div {
    
}

/*menu contextuel*/
#control {
    position: absolute;
}
#control::before{
    display: block;
}
#control button {
    border: 1px solid #ccc;
}