/* ----- Nút dấu + màu đỏ ----- */
#modelToggle {
  position: absolute;
  left: 60px;
  bottom: 19px;
  font-size: 22px;
  color: #0c826f; /* đỏ hồng như giao diện */
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 50;
}

#modelToggle:hover {
  transform: rotate(90deg);  
  text-shadow: 0 0 8px #dde6ee;
}


/* ----- Nút trong menu ----- */
/* --- Chặn hoàn toàn pseudo-element --- */
#modelMenu::before,
#modelMenu::after,
#modelMenu *:not(.fa)::before,
#modelMenu *:not(.fa)::after {
  content: none !important;
  display: none !important;
}

/* ----- Menu chọn mô hình: reset hoàn toàn ảnh hưởng bên ngoài ----- */
#modelMenu {
  display: none; /* Ẩn khi mới load trang */
  position: absolute;
  bottom: 64px;
  left: 46px;
  flex-direction: column;  
  border: 1px solid #e1e6ea !important;  
  font-family: inherit;
  border-radius: 15px !important;
  overflow: hidden; /* <--- thêm dòng này */
  background-color: #ffffff !important; 
  
}

/* ----- Nút trong menu: dạng chữ nhật, không bo tròn ----- */
#modelMenu button {  
  display: block;  
  background-color: #ffffff !important; 
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  width: 250px !important;
  text-align: left !important;
  font-size: 14px !important;
  color: black !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  
  transition: background-color 0.3s ease, padding-left 0.3s ease;   
}


#modelMenu button:hover {
  background-color: #f7f7f7 !important;   
  font-weight: 500 !important;
  padding-left: 22px !important;
}

#modelMenu button:hover i.fa {  
  opacity: 1 !important;
  display: inline-block !important;    
}

#modelMenu hr {
	margin: 0;
	border: none;
	border-top: 1px solid #bfc5c9;
	width: 100%;
}

.gemini-markdown{
  color: black;
  /*monospace*/
  font-size: 15px !important;
  text-align: justify;    
  line-height: 175%;  
}

.gemini-markdown li {
  font-size: 14.5px !important;
  margin-left: 0px !important;
}



/*------Định dạng bảng markdown-----------*/
.gemini-markdown table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 10px 0;
  background-color: #fcfcfd;
}

.gemini-markdown th,
.gemini-markdown td {
  border: 1px solid #e4eaf0;
  padding: 8px 12px;
  text-align: left;
}

.gemini-markdown th {
  background-color: #fcfcfd;  
  text-align: center;
  vertical-align: middle; /* canh giữa theo chiều dọc */
  font-weight: 600 !important;
}

.gemini-markdown tr:nth-child(even) {
  background-color: #ffffff;
}

.gemini-markdown tr:hover {
  background-color: #f1f1f1;
}

.gemini-markdown .table-wrapper {
  overflow-x: auto;
}

/*--------định dạng tiêu đề---------*/
/* --- Định dạng tiêu đề trong Markdown --- */
.gemini-markdown h1,
.gemini-markdown h2,
.gemini-markdown h3,
.gemini-markdown h4,
.gemini-markdown h5,
.gemini-markdown h6 {
  font-weight: 600 !important;  /* chữ đậm */
  color: black !important;       /* màu chữ rõ ràng, trung tính */
  margin-top: 18px !important;  /* khoảng cách phía trên */
  margin-bottom: 8px !important;/* khoảng cách phía dưới */  
}

/*------thẻ strong----------*/
.gemini-markdown strong {
  font-weight: 600;                  /* Giữ đậm, nhưng không quá nặng */   
  font-size: 15px;
}

.gemini-markdown strong:hover {
  background: rgba(26, 115, 232, 0.15);
}


/*-------------hiển thị code----------------*/
/* --- Loại bỏ lớp dịch tự động --- */
en2vi-host,
.corom-element {
  display: none !important;
}

/* --- Inline code --- */
.gemini-markdown code { 
  font-family: "Fira Code", "Courier New", Courier, monospace !important;
  font-size: 15px !important; 
  padding-left: 2px !important;
  padding-right: 2px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  border-radius: 2px !important;
  /*white-space: nowrap !important;*/
  color: #0c826f !important;

  display: inline-block !important;
  line-height: normal !important;
  vertical-align: middle !important;
  transform: translateY(-1px);

  white-space: pre-wrap !important; /* đảm bảo xuống dòng khi hiển thị */
  word-break: break-word !important;
}

/* --- Code block -margin: 1em 0 !important;-- */
.gemini-markdown pre {
  background-color: #fcfcfd !important;
  font-family: "Fira Code", "Courier New", Courier, monospace !important;
  font-size: 15px !important;
  line-height: 175% !important;  
  border-radius: 10px !important;  
  border: 1px solid #e4eaf0 !important;
  overflow-x: auto !important;   /* bật cuộn ngang */
  overflow-y: auto !important;   /* bật cuộn dọc nếu cần */
  max-width: 100% !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;         /* Firefox */
  scrollbar-color: #bfc8cf #fcfcfd !important;
}

.gemini-markdown pre span {
  background-color: transparent !important;  /* loại bỏ background riêng của span */
  color: inherit !important;                 /* kế thừa màu của pre */
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Code content --- */
.gemini-markdown pre code {
  background: none !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;

  line-height: 175% !important;
  white-space: pre !important;
  display: block !important;
  overflow: inherit !important;
}

/* --- Scrollbar WebKit --- */
.gemini-markdown pre::-webkit-scrollbar,
.gemini-markdown pre code::-webkit-scrollbar {
  height: 3px !important;
  width: 3px !important;
}

.gemini-markdown pre::-webkit-scrollbar-thumb,
.gemini-markdown pre code::-webkit-scrollbar-thumb {
  background: #cfd6dc !important;
  border-radius: 4px !important;
}

.gemini-markdown pre::-webkit-scrollbar-thumb:hover,
.gemini-markdown pre code::-webkit-scrollbar-thumb:hover {
  background: #a5b1ba !important;
}

.gemini-markdown pre::-webkit-scrollbar-track,
.gemini-markdown pre code::-webkit-scrollbar-track {
  background: #f6f8fa !important;
}

/* --- Hiệu ứng hover --- */
.gemini-markdown pre::-webkit-scrollbar,
.gemini-markdown pre code::-webkit-scrollbar {
  opacity: 0.4 !important;
  transition: opacity 0.25s ease !important;
}
.gemini-markdown pre:hover::-webkit-scrollbar,
.gemini-markdown pre code:hover::-webkit-scrollbar {
  opacity: 1 !important;
}

/* --- Highlight thủ công --- */
.gemini-markdown pre code .keyword,
.gemini-markdown pre code .token.keyword,
.gemini-markdown pre code .hljs-keyword,
.gemini-markdown pre code span.k,
.gemini-markdown pre code span.kw {
  color: #d73a49 !important;
  font-weight: 600 !important;
}

.gemini-markdown pre code .string,
.gemini-markdown pre code .token.string,
.gemini-markdown pre code .hljs-string,
.gemini-markdown pre code span.s {
  color: #032f62 !important;
}

.gemini-markdown pre code .comment,
.gemini-markdown pre code .token.comment,
.gemini-markdown pre code .hljs-comment,
.gemini-markdown pre code span.c {
  color: #6a737d !important;
  font-style: italic !important;
}

/* --- Reset màu chữ khi có theme khác --- */
.gemini-markdown pre code *,
.gemini-markdown code * {
  color: inherit !important;
  background: none !important;
}

.checkmark { 
  display: inline-block;       /* <— thêm dòng này */
  color: #0c826f;
  font-weight: 600;
  font-size: 17px;
  margin-left: 10px;
  border-radius: 50%;
  border: 0px solid #6eafa4;
  width: 16px;                 /* <— kích thước vòng tròn */
  height: 16px;
  text-align: center;
  line-height: 16px;           /* canh giữa dấu ✓ */
}




/*------Màn hình thu dọc, chuẩn iPad-------*/
@media screen and (max-width: 735px) {

  #modelToggle { 
    left: 40px;
    bottom: 17px; 
  }

  #modelMenu {   
    bottom: 60px;
    left: 26px;    
  }

}

/*--------Giao diện điện thoại---------*/
@media screen and (max-width: 480px) {
  
  #modelToggle { 
    left: 24px;
    bottom: 9px; 
    color:#32465a;
  }

  #modelMenu {   
    bottom: 50px;
    left: 14px;    
  }
  
  #modelMenu button {   
    font-size: 15px !important;  
    transform: scale(0.8);        /* 10 / 16 = 0.625 */
    transform-origin: left center;  /* để chữ không bị lệch vị trí */
    min-width: 180px;
    white-space: nowrap;
  }
  
  .gemini-markdown{  
    font-size: 17px !important;
  }
  
  .gemini-markdown li {
    font-size: 16.5px !important;
  }
  
  .gemini-markdown table {
    font-size: 16px;
  }
  
  .gemini-markdown strong {
    font-size: 17px;
  }
  
  .gemini-markdown code { 
    font-size: 17px !important; 
  }
  
  .gemini-markdown pre {
    font-size: 17px !important;
  }


 .checkmark { 
  color: #32465a;
  font-size: 22px;
 }




}




