.container-geral{
  background-color: #f8f9fe;
  height: 100vh;
}

.s-wrapper{
  padding: 16px;
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid #ececec;
}

.case-evaluation{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar {
  background-color: #f8f9fe;
  height: 100%;
  padding: 16px;
  border-radius: 24px;
  overflow: auto;
}

.sidebar-button {
  background-color: #28a745;
  color: white;
  border: none;
}
.sidebar-button i {
  margin-right: 8px;
}

.logo {
  font-weight: bold;
  font-size: 24px;
  background: linear-gradient(135deg, #13ECB9 -0.03%, #00C899 100.03%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(24px, 5vw, 40px); /* Dynamically adjusts font size */
  font-style: normal;
  font-weight: 600;
  line-height: 1.2; /* Adjusted for better spacing */
  text-align: center; /* Center-align the text if needed */
  margin: 0 auto; /* Center the element horizontally */
  padding: 8px; /* Add some padding for spacing */
}

.logo-text-simple {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(18px, 4vw, 32px); /* Dynamically adjusts font size */
  font-style: normal;
  font-weight: 600;
  line-height: 1.2; /* Adjusted for better spacing */
}


@media (max-width: 768px) {
  .logo-text {
    font-size: 32px; /* Reduz o tamanho da fonte em telas menores */
  }
}

@media (max-width: 576px) {
  .logo-text {
    font-size: 24px; /* Reduz ainda mais o tamanho da fonte em telas muito pequenas */
  }
}

.title {
  font-weight: 600;
  color: #2b7a78;
}
.main-content {
  font-size: 0.9rem;
  color: #6c757d;
  background-color: #f8f9fe !important;
  overflow: hidden;
}

.right-panel {
  background-color: #f8f9fa;
  border-radius: 8px;
}

.chat-container {
  display: flex;
  flex-direction: column;
  border: 1px solid #ececec;
  border-radius: 24px !important;
}

.chat-component{
  overflow: hidden;
  height: 100%;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto !important;
  /*height: calc(100vh - 160px);*/
}

.message-bubble {
  max-width: 60%;
  padding: 10px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.bg-success-light {
  background-color: #d4edda !important;
}

.message.doctor .message-bubble {
  background-color: #f0f0f0;
}

.message.patient .message-bubble {
  background-color: #d4edda;
}

.card {
  border-radius: 10px;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}


.card-header.bg-info {
  background-color: #a8dadc;
  color: #000;
}
.card-header.bg-warning {
  background-color: #fcd34d;
  color: #000;
}

.bg-user-message{
  background-color: #d1fae5;
  color: #6b7280;
  border-color: #d1d5db;
}

.bg-bot-message{
  background-color: #f9fafb;
  color: #6b7280;
  border-color: #d1d5db;
}

.chat-title{
  font-size: clamp(16px, 2.5vw, 32px);
  font-weight: 600;
  color: #4b5563;
  font-family: "Rethink Sans", sans-serif;
  border: none !important;
  background-color: #ffffff !important;
}

.patient{
  display: block;
  background-color: #f3f4f6;
  border: solid 1px #ececec !important;
  border-radius: 24px !important;
}

.patient-form > *{
  background-color: #f3f4f6 !important;
}
.patient-form > ul{
  list-style: none;
  padding-left: 0;
}

.patient-title{
  border-radius: 24px !important;
  background-color: #f3f4f6;
  border: none;
  font-size: clamp(16px, 2.5vw, 24px);
  font-family: "Rethink Sans", sans-serif;
}

.exams-title{
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  background-color: #f3f4f6;
  border: none;
  font-size: 24px;
  font-family: "Rethink Sans", sans-serif;
}

.exams{
  display: block;
  background-color: #f3f4f6;
  border: solid 1px #ececec !important;
  border-radius: 24px !important;
}

.exams-content{ padding: 0; }

.evaluation{
  display: block;
  background-color: #f3f4f6;
  border: solid 1px #ececec !important;
  border-radius: 24px !important;
}

.evaluation-title{
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  background-color: #f3f4f6;
  border: none;
  font-size: clamp(16px, 2.5vw, 24px);
  font-family: "Rethink Sans", sans-serif;
}

.evaluation-content{ padding: 0; }

.btn-green{
  background-color: #10c89d;
  border-color: #0da17e;
  color: white;
  border: none;
}

.actions{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-config{ gap: 8px; }

.user-config-email{
  font-size: 11px;
  color: #a0a1ac;
  font-weight: 600;
  margin-bottom: 0px;
}

.user-config-name{
  font-size: 16px;
  color: #181818;
  font-weight: 600;
  margin-bottom: 0px;
}



.feedback-finish-button{
  display: block;
}

.feedback-finish-button-sm{
  display: none;
}

.feedback-container{
  border:none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

.feedback-header{ margin-bottom: 8px; }

.feedback-card-header{
  border: none;
  background-color: #ffffff !important;
  font-size: 24px;
  border-radius: 24px !important;
}

/* Feedback layout: make columns/cards stretch and enable internal scroll */
.feedback-wrapper{ 
  flex: 1 1 auto; 
  min-height: 0; 
}
.feedback-wrapper > [class^='col-'],
.feedback-wrapper > [class*=' col-']{ 
  display: flex; 
  min-height: 0; 
}
.feedback-wrapper .card{ 
  display: flex; 
  flex-direction: column; 
  min-height: 0; 
  width: 100%; 
}
.feedback-wrapper .card-body{ 
  flex: 1 1 auto; 
  min-height: 0; 
  overflow: auto; 
}

/* Force side-by-side layout for >=940px (fills gap until Bootstrap lg=992px) */
@media(min-width: 940px){
  .feedback-wrapper > .col-12.col-lg-8{ flex: 0 0 auto; width: 66.6666667%; }
  .feedback-wrapper > .col-12.col-lg-4{ flex: 0 0 auto; width: 33.3333333%; }
}

/*.login-image{*/
/*  background: url() no-repeat center;*/
/*}*/

/* Login: hero background */
.login-hero{
  min-height: 100vh;
  background:
          radial-gradient(1200px 600px at -10% -10%, rgba(16,200,157,0.12), transparent 60%),
          radial-gradient(1000px 500px at 110% 0%, rgba(37,99,235,0.10), transparent 60%),
          linear-gradient(180deg, #f8f9fe 0%, #ffffff 100%);
  padding: 24px;
}

/* Questionary: container fills viewport and card scrolls internally */
.questionary-container{ 
  min-height: 100vh; 
  background-color: #f8f9fe; 
}
.questionary-root{ min-height: 0; }
.questionary-card{ 
  border-radius: 16px; 
  overflow: hidden; 
}
.questionary-progress{ 
  border-top-left-radius: 10px !important; 
  border-top-right-radius: 10px !important; 
  border-bottom-left-radius: 0 !important; 
  border-bottom-right-radius: 0 !important; 
}
.questionary-body{ 
  height: 50vh; 
  overflow: auto; 
}
@media(min-height: 900px){
  .questionary-body{ height: 60vh; }
}
@media(max-width: 940px){
  .questionary-body{ height: 55vh; }
}
.questionary-footer{ 
  position: sticky; 
  bottom: 0; 
  z-index: 1; 
}

/* Login: card layout */
.login-card{
  width: 100%;
  max-width: 980px;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.info-side{
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.action-side{
  background: #ffffff;
}

.brand-logo{
  width: 40px;
  height: 40px;
}

.btn-login{
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 16px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.btn-login:hover{
  background-color: #1d4ed8;
}

.btn-login.loading{
  opacity: 0.85;
}

.tagline{
  font-weight: 700;
  color: #111827;
}

.features li{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #4b5563;
}

.btn-logout{
  background-color: #ef4444;
  color: white;
  border: 1px solid #b91c1c;
  width: 100%;
  padding: 16px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.login-button-container{
  background-color: #fff;
  max-width: 600px;
  width: 100%;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0px 3px 11px 0px rgba(0, 0, 0, 0.06), 0px 10px 15px 0px rgba(0, 0, 0, 0.03);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050; /* Ensure it appears above other elements */
}

.loading-text {
  color: white;
  font-size: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.s-wrapper{
  min-width: 0;
  max-height: 100%;
  overflow: auto;
}

.main-content, .right-panel {
  flex: 1;
  min-width: 0;
}

.paiDeTodos{ display: flex; }

.instructions{
  font-size: clamp(14px, 5vw, 22px);
  font-weight: bold;
  color: black;
}

.instruction-toggler{
  display: none;
}

.internal-patient{
  display: none;
}

.external-patient{
  display: block;
}

@media(max-width: 1440px){
  .new-s-wrapper{
    display: none !important;
  }
  .instruction-toggler{
    display: block !important;
  }
}

@media(max-width: 940px){
  .paiDeTodos{
    flex-direction: column;
    gap: 15px;
  }
  .container-geral{
    height: 100vh !important;
  }
}

@media(max-width: 992px){
  .feedback-container{
    height: unset !important;
  }

  .feedback-finish-button{
    display: none !important
  }

  .feedback-finish-button-sm{
    display: block !important;
  }
}

@media(max-width: 940px){
  .chat-messages{
    flex: 1 !important;
    height: auto !important;
    min-height: 0;
  }
  .feedback-wrapper{
    flex-direction: column !important;
    flex-wrap: unset !important;
  }
  .internal-patient{
    display: block !important;
  }
  .external-patient{
    display: none !important;
  }

}

@media(max-width: 940px){
  .main-content{ min-height: 0; }
  .chat-component{ min-height: 0; }
}

/* Patient card: flatter borders on mobile */
@media(max-width: 940px){
  .patient{ border-radius: 0 !important; }
  .patient-title{ border-radius: 0 !important; }
}

/* Mobile actions (<=940px): buttons for instruções and avaliação side by side */
@media(max-width: 940px){
  .mobile-actions{
    display: flex;
    gap: 10px;
  }
  .mobile-actions .fab-action{
    flex: 1;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-color: #10c89d;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
  }
  .mobile-actions .fab-action:first-child{
    background-color: #2563eb; /* Instruções */
  }
}
