* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
body {
    font-family: "Noto Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #372b2b;
    background-color: rgb(252,252,249);
    height: 100vh;
    margin: 0;
}

.loader {
    display: inline-block;
    margin-right: 7px;
    width: 24px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#000 90%,#0000);
    background:
        var(--_g) 0%   50%,
        var(--_g) 50%  50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}
.fonti{
    margin-top: 10px;
}
.box_fonti{

}
.box_singola_fonte{
    border-color: oklch(87.2% .01 258.338);
    background-color: rgb(243,244,246);
    border-width: 1px;
    border-style: solid;

    padding-bottom: 10px;
    padding-top: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 15px;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.fonte_col1{
    flex: 1;
}
.fonte_titolo{
    font-weight: 500;
}
.icona_fonte{

}
.fonte_btn{
    margin-top: 10px;
}

@keyframes l3 {
    20%{background-position:0%   0%, 50%  50%,100%  50%}
    40%{background-position:0% 100%, 50%   0%,100%  50%}
    60%{background-position:0%  50%, 50% 100%,100%   0%}
    80%{background-position:0%  50%, 50%  50%,100% 100%}
}

.domBox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin-left: 50px;
}
.domTitolo{
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: "Lexend Deca", Sans-serif;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.gitbtn {
    background-color: #dbe1e7;
    border: 1px solid rgba(27, 31, 35, 0.15);
    border-radius: 6px;
    color: #24292e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    padding: 5px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    text-decoration: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.gitbtn:hover {
background-color: #f3f4f6;
box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
}
/*.gitbtn:active {*/
/*background-color: #edeff2;*/
/*box-shadow: inset 0 1px 0 rgba(27, 31, 35, 0.1);*/
/*}*/
/*.gitbtn:focus {*/
/*outline: 2px solid #0969da;*/
/*outline-offset: 2px;*/
/*}*/
.gitbtn:has(.favicon-circle){
    justify-content: flex-start;
}
.gitbtn .favicon-circle {
    margin-right: 7px;
}
.favicon-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;     /* makes it a circle */
  object-fit: cover;      /* crops rectangular icons to fill the circle */
  display: inline-block;  /* keeps sizing consistent */
}
.favicon-circle.x2{
  width: 36px;
  height: 36px;
}


.editable:focus,
.editable:focus-visible {
    outline: none;         /* Chrome/Edge/Firefox */
}
.domInputBox{
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(217,221,220);
    width: 60vw;
    border-radius: 20px;
    min-height: 120px;
    padding: 15px;
    background-color: #fff;
}
.domInputBox .editable{
    flex: 1;
}
.domInputBox .controlli{
    display: flex;
    justify-content: flex-end;
}
.domInputBox .controlli .opzioni{
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.domInputBox .init{
    color: #999;
}
.started .domTitolo{
    display: none;
}
.started #msg_list{
    display: flex;
    flex-direction: column;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
.started .domInputBox{
    position: fixed;
    bottom: 20px;
    z-index: 99;
}
#msg_list{
    display: none;
    width: 60vw;
    height: 100vh;
    overflow: scroll;
    padding-bottom: 150px;
}
#msg_list .msg{
    border-radius: 10px;
    margin-top: 10px;
}
#msg_list .usr{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
#msg_list .usr div{
    background-color: #eee;
    height: auto;
    min-height: 0;
    max-width: 70%;
    border-radius: 10px;
    padding: 10px;
}
#msg_list .sys{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
#msg_list .sys .box_risposta{
    height: auto;
    min-height: 0;
    max-width: 85%;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #eee;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
#msg_list .sys .stato{
    padding-top: 10px;
    padding-bottom: 10px;
}





/* Paragraphs */
p {
  margin: 0.75em 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  margin: 1.2em 0 0.6em;
}

/* Lists */
ul, ol {
  margin: 0.75em 0 0.75em 1.5em;
}
li {
  margin: 0.3em 0;
}





/* ++++++++++++++++++++++++++++++++++++++++++++++ BEGIN STILE FINESTRE MODALI E LOADING */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      animation: fadeIn 0.3s;
    }

    .modal-overlay.active {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .modal {
      background: white;
      border-radius: 12px;
      width: 90%;
      max-width: 600px;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      animation: slideUp 0.3s;
    }

    .modal-header {
      padding: 10px 14px;
      border-bottom: 1px solid #e5e7eb;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header {
      font-size: 20px;
      color: #1f2937;
    }

    .close-btn {
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: #6b7280;
      line-height: 1;
      padding: 0;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      transition: background 0.2s;
    }

    .close-btn:hover {
      background: #f3f4f6;
    }

    .modal-body {
      padding: 10px;
      overflow-y: auto;
      flex: 1;
    }

    .modal-body p {
      margin-bottom: 16px;
      line-height: 1.6;
      color: #374151;
    }

    .modal-footer {
      padding: 16px 24px;
      border-top: 1px solid #e5e7eb;
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    .modal-footer button {
      padding: 10px 20px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s;
    }

    .btn-cancel {
      background: #f3f4f6;
      color: #374151;
    }

    .btn-cancel:hover {
      background: #e5e7eb;
    }

    .btn-confirm {
      background: #667eea;
      color: white;
    }

    .btn-confirm:hover {
      background: #5568d3;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
/* ++++++++++++++++++++++++++++++++++++++++++++++ END STILE FINESTRE MODALI E LOADING  */
