* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}
body {
  height: 100vh;
  background: #0f2027;
  margin: 0;
  background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
  color: #fff;
}
.container {
  display: flex;
  width: 100%;
}
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* PHONE, TABLET CSS - begin*/

/* só visível em tablet/mobile */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Overlay escuro atrás do menu mobile */
.sidebar-overlay {
  display: none;
}

.sidebar-overlay.active {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.4);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Em mobile, o estado "closed" (colapso de desktop) não se aplica */
  .sidebar.closed {
    width: 280px;
    padding: 5px 1em;
  }

  .content {
    width: 100%;
  }

  .main-content {
    margin: 16px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 240px;
  }

  .main-content {
    margin: 12px;
  }

  .topbar {
    padding: 8px 12px;
  }

  .topbar-area,
  .topbar-page {
    font-size: 13px;
  }

  .topbar-separator {
    margin: 0 4px;
  }
}

@media (max-width: 1024px) {

  .top-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-actions {
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }

  .search-container {
    width: 100%;
    margin-left: 0;
  }

  .filter-tabs,
  .session-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar,
  .session-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs button,
  .session-tabs button {
    flex-shrink: 0;
  }

  .filter-bar {
    width: 100%;
  }

  .filter-bar input[type="date"] {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

@media (max-width: 640px) {

  .top-row h1 {
    font-size: 20px;
  }

  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions > * {
    width: 100%;
  }

  .btn-create {
    text-align: center;
  }

  .actions {
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .col.actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-bar button,
  .filter-bar input {
    font-size: 13px;
  }
}

/* PHONE, TABLET CSS - end*/


/* LOGIN */

.error-msg {
  color: #ff6b6b;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

/* MAIN CONTENT */

.main-content {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: stretch;
  margin: 30px;
}
.top-row {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  width: 100%;
}
.top-row h1 {
  margin: 0; 
}
.search-container {
  display: flex;
  align-items: center;
  background: #203a43;
  padding: 5px 10px;
  border-radius: 8px;
  margin-left: auto;
  gap: 8px;
  width: 350px;
}

.search-container input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
}

.search {
  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 5px;
  border-radius: 6px;
}

.search:hover {
  background: rgba(255, 255, 255, 0.1);
}
.search-icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
}

.search-container input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  width: 350px;
}

/* USERS, CLINICS LIST */

.users-section {
  margin-top: 10px;
}

.users-list {
  margin: 10px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.user-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
  padding: 2px 20px;
}
.user-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-right: auto;
}

.user-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}
.actions {
  display: flex;
  gap: 15px;
  margin-left: auto; 
}

.actions button,
.actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 5px;
  transition: opacity 0.2s ease;
}
.actions button:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.user-card:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05);
}

.user-card:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
}

.actions .edit {
  background: none;
  color: rgb(92, 225, 255);
}

.actions .remove {
  background: none;
  color: rgb(92, 225, 255);
}








.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}
.sidebar.closed .logo-group {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.sidebar.closed .logo-container {
  justify-content: center;
}


/* LOGIN */


.login-container{
  width: 100%;
  display: flex;
  background-color: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 1s ease;
  display: flex;
  min-height: 100vh;
}
@keyframes slideIn{
  from{
    transform: translateX(-100px);
    opacity: 0;
  }
  to{
    transform: translateX(0);
  }
}


.login-image{
  width: 60%;
  color: #ffff;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-image h1{
  font-size: 40px;
  margin-bottom: 10px;
  color: white;
}
.login-image p{
  font-size: 18px;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.5s;
}


.slide.active {
  display: block;
  opacity: 1;
  position: relative;
  color: #ffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 0;
}
.slide-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 40px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

.login-form{
  width: 40%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 1s ease;
}
@keyframes fadeUp{
  from{
    transform: translateY(50px);
    opacity: 0;
  }
  to{
    transform: translateY(0);
    opacity: 1;
  }
}

.login-form h2 {
  margin-bottom: 30px;
  font-size: 32px;
  color: white;
}

.input-group-login {
  position: relative;
  margin-bottom: 28px;
}

.input-group-login input {
  width: 100%;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 22px 15px 6px;
  font-size: 16px;
  outline: none;
  background: white;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.input-group-login label {
  position: absolute;
  left: 15px;
  top: 18px;
  font-size: 16px;
  color: #888;
  pointer-events: none;
  transition: all 0.18s ease;
}

.input-group-login input:focus {
  border-color: #2c5364;
}

.input-group-login input:focus + label,
.input-group-login input:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 11px;
  color: #2c5364;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-resend {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-resend:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.login-btn {
  height: 50px;
  padding: 0 30px;
  border: none;
  border-radius: 12px;
  background: #2c5364;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #3a6b7e;
}

.login-btn{
  padding: 12px;
  background: #2c5364;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.4s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.login-btn:hover{
  background: #203a43;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
@media (max-width:768px){
  .login-container{
    flex-direction: column;
    height:auto;
  }
  .login-image, .login-form{
    width: 100%;
  }
  .login-image{
    height: 200px;
  }
}



/*SIDEBAR*/

.sidebar {
  box-sizing: border-box;
  width: 350px;
  height: 100vh; 
  padding: 5px 1em; 
  top: 0;
  left: 0;           
  border-right: 1px solid #0f2027;
  position: sticky;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
  display: flex;
  flex-direction: column;
}
.sidebar.closed {
  padding: 5px;
  width: 75px;
}
.sidebar ul, .sidebar li{
  list-style: none;
}
.sidebar > ul > li:first-child{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  .logo{
    font-weight: 600;
  }
}
.sidebar ul li.active a{
  color: #5e63ff;
  svg{
    fill:#5e63ff;
  }
}
.sidebar a, .sidebar .dropdown-btn, .sidebar .logo{
  border-radius: .5em;
  padding: .85em;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1em;
}
.dropdown-btn{
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  margin-left: auto;
}
.sidebar svg{
  flex-shrink: 0;
  fill: #5e63ff;
}
.sidebar a span, .sidebar .dropdown-btn span{
  flex-grow: 1;
}
.sidebar a:hover, .sidebar .dropdown-btn:hover{
  background-color: rgba(255, 255, 255, 0.08);
}
.sidebar .submenu{
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;
  overflow: hidden;
}
.submenu-content {
  overflow: hidden; 
}
.sidebar .submenu.show{
  grid-template-rows: 1fr;
}
.arrow-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  margin-left: auto;
}
.dropdown-btn.active .arrow-icon {
  transform: rotate(-180deg);
}
.sidebar .submenu a{
  padding-left: 2em;
}
.close-sidebar {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  display: flex;
  margin-left: auto;
  justify-content: center;
}
.toggle-arrow{
  width: 100%;
  height: 100%;
  transition: transform 0.15s ease;
  margin-left: auto;
  background: none;

}
.close-sidebar.active .toggle-arrow{
  transition: rotate 150ms ease;
}
.toggle-arrow:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
.sidebar-btn i {
  position: relative;
  font-size: 28px;
  transition: 0.2s;
}
.sidebar span {
  font-size: 16px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.onlipsy-logo{
  width: 40px;
  height: 40px;
}
.login-logo {
  font-size: 25px;
  margin-bottom: 10px;
  margin-top: 12px;
}
.logout-content {
  margin-top: auto;
}



/* TOPBAR */

.topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 50px;
  background: #0f2027;
}

.right-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.idiom-container {
  position: relative;
}

.idiom-container .dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.topbar .submenu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #203a43;
  border-radius: 8px;
  padding: 5px 0;
  display: none;
  min-width: 80px;
}

.topbar .submenu.show {
  display: block;
}

.submenu li {
  list-style: none;
  padding: 5px 10px;
  cursor: pointer;
}

.submenu li:hover {
  background: #2c5364;
}

.topside-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.topside-btn img {
  width: 20px;
  height: 20px;
}

.topbar-area {
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.topbar-area-path {
  font-size: 13px;
  color: white;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.left-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-separator {
  opacity: 0.3;
  font-size: 16px;
  padding: 0 4px;
}

.topbar-page {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}


/* USER LIST */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: rgb(68, 114, 136);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: white;
}

.modal-search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: white;
  color: #1a1a1a;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.modal-search-input::placeholder {
  color: #999;
}

.modal-search-input:focus {
  border-color: #2c5364;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-actions button {
  background: transparent;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  min-width: 140px;
  transition: background 0.2s;
}

.modal-actions button:hover {
  background: rgba(0, 0, 0, 0.05);
}

#confirmDelete {
  border-color: #ffffff;
  color: #ffffff;
}

#confirmDelete:hover {
  background: rgba(229, 62, 62, 0.1);
}

#cancelDelete {
  border-color: #ffffff;
  color: #ffffff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-create {
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: background 0.2s;
  margin-left: auto;
}

.questionnaire-header-right{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn-create:hover {
  background: rgba(0, 0, 0, 0.05);
}








/* CREATE USER  */

.profile-container {
  padding: 30px;
  max-width: 900px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #5fa3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.profile-header-info {
  flex: 1;
}

.profile-header-info h1 {
  margin: 0 0 5px 0;
  font-size: 28px;
}

.profile-role {
  font-size: 14px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
}

.profile-card-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin-bottom: 20px;
  font-weight: 600;
  color: white !important;
}

.profile-subsection {
  font-size: 14px;
  opacity: 0.7;
  margin: 15px 0 8px;
  font-weight: 500;
}

.create-user-container {
  padding: 30px;
  color: #000;
}

.create-user-container h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: white;
}

.role-block {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.role-header {
  width: 100%;
  background: #496d82;
  border: none;
  padding: 20px;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.role-header:hover {
  opacity: 0.6;
}

.role-header img {
  width: 20px;
  transition: transform 0.3s ease;
}

.role-block.active .role-header img {
  transform: rotate(180deg);
}

.role-content {
  display: none;
  background: #9fb6c0;
  padding: 30px;
  transition: 300ms ease-in-out;
}

.role-block.active .role-content {
  display: block;
  opacity: 1;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-row label {
  width: 150px;
  color: white !important;
}

.form-row input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #333;
}

.input-group {
  display: flex;
  gap: 10px;
  flex: 1;
}

.input-group input {
  flex: 1;
}

.input-with-icon {
  display: flex;
  flex: 1;
  width: 100%;
}

.input-with-icon input {
  flex: 1;
}

.input-with-icon button {
  width: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.submit {
  background: #5c9ec4;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
}

.submit:hover {
  opacity: 0.9;
}

.note {
  font-size: 12px;
  margin-left: auto;
}

.btn-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-back:hover {
  color: #000;
}






/* EDIT USER */
.role-content select {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #fff;
  color: #000;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}



/* CREATE CLINIC */

.clinic-content {
  display: block;
  background: #9fb6c0;
  padding: 30px;
}

/* CONTAINER */
.create-user-container {
  padding: 30px;
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-row label {
  min-width: 150px;
  font-weight: 500;
}

.form-row input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* INPUT GROUP */
.input-group {
  display: flex;
  gap: 10px;
  flex: 1;
}

/* QUESTIONNAIRE TOP */

.questionnaire-table-header {
  display: grid;
  grid-template-columns: 1fr 160px 80px 120px 160px 120px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.4;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 12px;
  color: white;
}

.questionnaire-table-row {
  display: grid;
  grid-template-columns: 1fr 160px 80px 120px 160px 120px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  gap: 12px;
}

.questionnaire-table-row:hover {
  background: rgba(255,255,255,0.02);
}

.btn-secondary.btn-small{
  color: white;
}

.qt-icon {
  font-size: 18px;
  flex-shrink: 0;
}


/*MODAL - ASSIGN DO QUESTIONNAIRE-LIST*/ 
.assign-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.assign-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.assign-tab:hover {
  color: rgba(255,255,255,0.8);
}

.assign-tab.active {
  color: white;
  border-bottom: 2px solid white;
}

.assign-suggestions {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.assign-selected-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-patient-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(95, 163, 199, 0.2);
  border: 1px solid rgba(95, 163, 199, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
}

.selected-patient-tag button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}


/*MODAL - ASSIGN DO QUESTIONNAIRE-LIST - end*/ 



.qt-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: white;
}

.qt-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qt-meta {
  font-size: 12px;
  opacity: 0.5;
}

.qt-badge {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

.qt-count,
.qt-duration {
  font-size: 14px;
  opacity: 0.7;
}

.qt-usage {
  display: flex;
  align-items: center;
  gap: 8px;
  color:white !important;
}

.qt-usage-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  max-width: 100px;
}

.qt-usage-fill {
  height: 100%;
  background: #5fa3c7;
  border-radius: 2px;
}

.qt-usage-count {
  font-size: 13px;
  opacity: 0.7;
  min-width: 24px;
  text-align: right;
}

.qt-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  color: white;
}

.qt-items{
  color: white !important;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.4;
  font-size: 14px;
  padding: 4px 8px;
  color: inherit;
}

.btn-icon:hover {
  opacity: 1;
}

.sub-header {
  font-size: 14px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px 4px 20px;
  margin: 0;
}

.questionnaire-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.permission {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.permit-all {
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

/*DASHBOARD ALERTAS - inicio */
.alert-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.alert-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15); /* âmbar suave */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #f5a623;
}

.alert-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.alert-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.alert-desc {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.alert-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-action {
  font-size: 13px;
  font-weight: 500;
  color: #5b9dff;
  text-decoration: none;
}

.alert-action:hover {
  text-decoration: underline;
}

.alert-dismiss {
  background: transparent;
  border: none;
  padding: 4px 6px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.alert-dismiss:hover {
  color: #d1d5db;
}

/*DASHBOARD ALERTAS - end */

/*Paginação - begin*/
.patients-pagination,
.questionnaire-pagination,
.session-pagination,
.clinic-pagination,
.users-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  margin: 16px 0;
  padding: 12px 0;
}

.btn-page,
.btn-page:visited,
.btn-page:hover {
  background: transparent;
  border: 0.5px solid var(--border-strong, #444);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  color: #fff !important;
  text-decoration: none;
  cursor: pointer;
}

.btn-page.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-page:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.06);
}

#pageIndicator {
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}

/*Paginação - end*/

/* SEARCH */
.search-container {
  display: flex;
  align-items: center;
  background: #203a43;
  padding: 5px 10px;
  border-radius: 10px;
  gap: 8px;
  width: 300px;
}

.search-container input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  flex: 1;
}

.search {
  background: none;
  border: none;
  cursor: pointer;
}

.search-icon {
  width: 18px;
}

/* LIST */
.questionnaire-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}

/* ITEM */
.questionnaire-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

/* alternating colors */
.questionnaire-item:nth-child(odd) {
  background: rgba(255, 255, 255, 0.7);
}

.questionnaire-item:nth-child(even) {
  background: rgba(255, 255, 255, 0.4);
}

/* SWITCH (toggle) */
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: black;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background-color: #9fc3d1;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* BUTTON */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.submit {
  background: #5fa3c7;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}




/* CREATE QUESTIONNAIRE */

.q-details-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.q-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 15px;
}

.q-input::placeholder {
  opacity: 0.4;
}

.q-textarea {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: rgb(0, 0, 0);
  font-size: 15px;
  resize: vertical;
  min-height: 150px;
}

.q-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-bottom: 8px;
  display: block;
  color: #ffffff;
  margin-bottom: 10px;
}

.q-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.q-option-group {
  display: flex;
  flex-direction: column;
}


.radio-pill-group {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.q-options-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}


.q-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.15);
  color: rgb(0, 0, 0);
  font-size: 15px;
}

.q-score-input {
  width: 90px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.15);
  color: rgb(0, 0, 0);
  font-size: 14px;
  text-align: center;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.radio-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

.radio-pill input[type="radio"] {
  display: none;
}

.radio-pill:has(input:checked) {
  background: rgba(2, 146, 224, 0.2);
  border: 1px solid #042334;
}

.radio-pill:has(input:checked) span {
  color: #011a28;
  font-weight: 600;
}

.q-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 15px;
}

.q-section-title h3 {
  font-size: 18px;
}

.q-section-sub {
  font-size: 13px;
  opacity: 0.5;
}

.question {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.question-number {
  font-weight: 600;
  font-size: 15px;
  color: #5fa3c7;
}

.remove-question {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.remove-question:hover {
  color: #ff6b6b;
}

.formula-header {
  display: flex;
  justify-content: flex-end;
}

.remove-formula{
  align-items: right;
}

.q-options-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.q-score-hint {
  opacity: 0.4;
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
  color: #ffffff;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-text {
  flex: 1;
}

.q-score-input {
  width: 90px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 14px;
  text-align: center;
}

.remove-option {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
  padding: 5px;
}

.remove-option:hover {
  color: #ff6b6b;
}

.add-option {
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 10px;
}

.add-option:hover {
  border-color: #5fa3c7;
  color: #5fa3c7;
}

.q-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.q-btn-primary {
  background: #5fa3c7;
  border: none;
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
  align-items: center;
}


.q-btn-primary:hover {
  opacity: 0.85;
}

.q-btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.q-btn-secondary:hover {
  border-color: #5fa3c7;
  color: #5fa3c7;
}

.create-container {
  background: #465d66;
  padding: 30px;
  border-radius: 10px;
}

.form-row {
  display: flex;
  align-items: center;
  margin: 15px 0;
  gap: 20px;
}

.form-row label {
  width: 180px;
}

.form-row input,
.form-row textarea {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
}

textarea {
  height: 80px;
}

.notes-public-container textarea {
  width: 100% !important;
  flex: 1 !important;
  padding: 10px !important;
  border-radius: 6px !important;
  border: 1px solid #333 !important;
  min-height: 100px;
  box-sizing: border-box;
}

.inline {
  align-items: flex-start;
}

.radio-group {
  display: flex;
  gap: 40px;
}

/* QUESTION BLOCK */
.question {
  background: rgba(255,255,255,0.6);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

/* OPTIONS */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  gap: 10px;
}

.option input {
  flex: 1;
}

button {
  cursor: pointer;
}

.add-option {
  margin-top: 10px;
}

.remove-option {
  width: 35px;
}

/* ACTIONS */
.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.submit {
  background: #5fa3c7;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remove-question {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #000;
}

.remove-question:hover {
  color: red;
}



/* THERAPIST CREATE - CLINICADMIN*/

.create-user-container {
  padding: 30px;
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
}

/* INPUTS */
.form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.input-group {
  display: flex;
  gap: 10px;
}

input, select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

/* PATIENTS */
.patients-section {
  margin-top: 40px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
}

.patients-top input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.patients-list {
  gap: 12px;
  display: flex;
  flex-direction: column;
}

.patient-item {
  padding: 15px 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.3;
}

/* alternado */
.patient-item:nth-child(odd) {
  background: rgba(255,255,255,0.05);
}

.patient-item:nth-child(even) {
  background: rgba(255,255,255,0.1);
}

.patient-label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.patient-label .name {
  font-size: 16px;
}

.patient-label input {
  display: none;
}


.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid white;
  display: inline-block;
  position: relative;
}

.patient-label input:checked + .checkmark {
  background: #5fa3c7;
  border-color: #5fa3c7;
}

.patient-label input:checked + .checkmark::after {
  content: "✔";
  position: absolute;
  font-size: 12px;
  top: -2px;
  left: 2px;
  color: black;
}

/* botão */
.form-actions {
  margin-top: 30px;
}

.submit {
  background: #5fa3c7;
  padding: 12px 25px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}


.patients-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* botões */
.select-all,
.clear-all {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.select-all {
  background: #5fa3c7;
  color: white;
}

.clear-all {
  background: rgba(255,255,255,0.2);
  color: white;
}

.select-all:hover {
  background: #4a8dad;
}

.clear-all:hover {
  background: rgba(255,255,255,0.3);
}

/* contador */
.selected-count {
  font-size: 14px;
  opacity: 0.8;
}

.patients-page-header {
  margin-bottom: 24px;
}

.patients-count-label {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.5;
  display: block;
  margin-bottom: 6px;
  color: white;
}

.patients-title {
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 4px;
  color: white;
}

.patients-title em {
  font-style: italic;
  color: #5fa3c7;
}

.patients-header-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  margin-left: auto;
}

.patients-search-bar {
  margin-bottom: 20px;
}

.patients-search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: inherit;
  font-size: 14px;
}

.patients-table {
  width: 100%;
}

.patients-table-header {
  display: grid;
  grid-template-columns: 1fr 200px 100px 60px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.4;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: white;
}

.patients-table-row {
  display: grid;
  grid-template-columns: 1fr 200px 100px 60px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  gap: 12px;
  color: white;
}

.patients-table-row:hover {
  background: rgba(255,255,255,0.02);
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.risk-unknown {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
}

.patients-table-header {
  grid-template-columns: 1fr 180px 80px 120px 60px;
}

.patients-table-row {
  grid-template-columns: 1fr 180px 80px 120px 60px;
}

.patient-risk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.risk-dot {
  font-size: 8px;
}

.risk-low {
  background: rgba(80, 200, 120, 0.1);
  color: #50c878;
}

.risk-medium {
  background: rgba(255, 165, 0, 0.1);
  color: #ffa500;
}

.risk-high {
  background: rgba(255, 80, 80, 0.1);
  color: #ff5050;
}

.patient-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(95,163,199,0.2);
  color: #5fa3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.patient-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.patient-details strong {
  font-size: 15px;
  font-weight: 500;
}

.patient-meta {
  font-size: 12px;
  opacity: 0.5;
}

.patient-next-session {
  font-size: 14px;
}

.next-session-today {
  color: #5fa3c7;
  font-weight: 600;
}

.patient-sessions {
  font-size: 14px;
  opacity: 0.7;
}

.patient-actions {
  display: flex;
  justify-content: flex-end;
}

.empty-dash {
  opacity: 0.3;
}

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 12px;
}

.form-section-subtitle {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-section-hint {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 12px;
}

.form-section-toggle {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  margin-top: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}














/* SESSIONS */

/* HEADER */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FILTROS */
.filters-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-top: 20px;
  padding: 10px 15px;
  font-weight: 500;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-icon {
  width: 16px;
  cursor: pointer;
}

/* LIST */
.sessions-list {
  margin-top: 10px;
}

/* ITEM */
.session-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 12px 15px;
}

/* zebra */
.session-item:nth-child(odd) {
  background: rgba(255,255,255,0.7);
}

.session-item:nth-child(even) {
  background: rgba(255,255,255,0.4);
}

/* colunas */
.col.actions {
  display: flex;
  gap: 20px;
}

.edit {
  cursor: pointer;
}

.remove {
  cursor: pointer;
}


.session-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.tab-btn.active {
  opacity: 1;
  border-bottom-color: currentColor;
}

.tab-count {
  font-size: 12px;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.sessions-two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

.session-card-full {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  align-items: center;
}

.session-card-full.session-today {
  border-color: #5fa3c7;
  background: rgba(95,163,199,0.08);
}

.session-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  gap: 2px;
}

.today-badge {
  font-size: 10px;
  background: #5fa3c7;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.date-weekday {
  font-size: 11px;
  opacity: 0.5;
}

.date-day {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.date-month {
  font-size: 11px;
  opacity: 0.5;
}

.session-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.session-card-title {
  font-size: 16px;
  font-weight: 500;
}

.session-card-meta {
  font-size: 13px;
  opacity: 0.5;
}

.session-card-badges {
  display: flex;
  gap: 8px;
}

.session-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.btn-primary {
  background: #2c5364;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.sidebar-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
}

.sidebar-label {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.5;
  display: block;
  margin-bottom: 14px;
  color: white;
}

.therapist-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: white;
}

.therapist-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(95,163,199,0.3);
  color: #5fa3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 30px 0;
}

.therapist-role {
  font-size: 13px;
  opacity: 0.5;
  display: block;
}

.therapist-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.therapist-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
}

.therapist-stat-row:last-child {
  border-bottom: none;
}

.therapist-stat-label {
  font-size: 13px;
  opacity: 0.5;
  flex-shrink: 0;
  color: white;
}

.therapist-stat-value {
  font-size: 13px;
  text-align: right;
  color: white;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table-header {
  display: grid;
  grid-template-columns: 120px 1fr 180px 60px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.4;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.history-table-row {
  display: grid;
  grid-template-columns: 120px 1fr 180px 60px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  gap: 12px;
}

.history-table-row:hover {
  background: rgba(255,255,255,0.02);
}

.history-date {
  font-size: 14px;
  opacity: 0.7;
}

.history-session {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-session strong {
  font-size: 15px;
  font-weight: 500;
}

.history-meta {
  font-size: 12px;
  opacity: 0.5;
}

.history-notes {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.7;
}

.notes-dot {
  color: #5fa3c7;
  font-size: 8px;
}

.history-empty {
  opacity: 0.3;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
  justify-self: end;
}

.questionnaire-table {
  width: 100%;
}

.questionnaire-table-header {
  display: grid;
  grid-template-columns: 1fr 160px 140px 160px 180px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.4;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.questionnaire-table-row {
  display: grid;
  grid-template-columns: 1fr 160px 140px 160px 180px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  gap: 12px;
}

.questionnaire-table-row:hover {
  background: rgba(255,255,255,0.02);
}

.questionnaire-table-row.qt-pending {
  background: rgba(95,163,199,0.04);
}

.questionnaire-table-row.qt-locked {
  opacity: 0.5;
}

.qt-cadencia{
  color: white;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
}

.filter-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.filter-tab:hover {
  color: rgba(255,255,255,0.8);
}

.filter-tab.active {
  color: white;
  border-bottom: 2px solid white;
}

.qt-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qt-name strong {
  font-size: 15px;
  font-weight: 500;
}

.qt-status {
  font-size: 12px;
  opacity: 0.5;
  color: white;
}

.qt-badge {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  display: inline-block;
}

.qt-date {
  font-size: 14px;
  opacity: 0.7;
}

.qt-result {
  font-size: 14px;
}

.qt-score {
  color: #5fa3c7;
  font-weight: 500;
}

.qt-score-neutral {
  opacity: 0.5;
}







/* QUESTIONNAIRE ASSIGN */
.search-and-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

#therapistSearch {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
}

.therapist-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
}

.questionnaire-assign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100% !important;
}

.questionnaire-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  width: 100% !important;
  transition: background 0.2s;
}

.questionnaire-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.questionnaire-item .name {
  flex: 1;
  font-size: 15px;
}

.questionnaire-item input[type="checkbox"] {
  display: none;
}


.questionnaire-item .name {
  flex: 1;
  color: rgb(45, 70, 107);
  font-weight: 500;
  padding-left: 4px;
}

.questionnaire-item .checkmark {
  width: 18px;
  margin-right: 10px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid white;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.questionnaire-item input:checked + .checkmark {
  background: #012d45;
  border-color: #011b29;
}

.questionnaire-item input:checked + .checkmark::after {
  content: "✔";
  position: absolute;
  font-size: 12px;
  top: -2px;
  left: 2px;
  color: white;
}

/* SUGESTÕES DE TERAPEUTA */
.therapist-suggestions {
  display: none;
  flex-direction: column;
  background: #2c5364;
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.selected-therapist {
  display: none;
  margin-top: 8px;
  color: #5ce1ff;
  font-size: 15px;
  font-weight: 500;
}





/* CLINIC - DETAIL */

.clinic-info {
  margin: 20px 0 30px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-label {
  font-size: 12px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.info-value {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin-bottom: 15px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 5px;
}

.section-header h2 {
  margin: 0;
  color: white;
}

.empty {
  opacity: 0.5;
  padding: 10px 20px;
  font-style: italic;
}




/* SESSION - LIST */

.session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.session-date {
  font-size: 18px;
  color: white;
}

.session-status {
  display: flex;
  align-items: center;
  margin: 0 20px;
}


/* QUESTIONNAIRE FILL */

.questionnaire-fill-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.questionnaire-header {
  margin-bottom: 30px;
}

.questionnaire-description {
  opacity: 0.7;
  margin-top: 8px;
  color: white;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: #5fa3c7;
  border-radius: 10px;
  transition: width 0.3s ease;
  width: 0%;
}

.question-counter {
  text-align: right;
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 30px;
}

.question-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.question-text {
  font-size: 20px;
  margin-bottom: 25px;
  line-height: 1.5;
  color: white;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: white;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.option-label:hover {
  background: rgba(255, 255, 255, 0.12);
}

.option-label input[type="radio"] {
  display: none;
}

.option-label input[type="radio"]:checked + .option-text {
  color: #5fa3c7;
  font-weight: 600;
}

.option-label:has(input:checked) {
  background: rgba(95, 163, 199, 0.15);
  border: 1px solid #5fa3c7;
}

.text-answer {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 16px;
  resize: vertical;
}

.question-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.question-navigation button {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

.question-navigation button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.question-navigation .submit {
  background: #5fa3c7;
  border-color: #5fa3c7;
}

/* QUESTIONNAIRE - EDIT */

.role-block .role-header {
  cursor: default;
}

/* CLINIC - DETAIL */

.modal-list {
  max-height: 200px;
  overflow-y: auto;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-item {
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.modal-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-item.selected {
  background: rgba(95, 163, 199, 0.3);
  border: 1px solid #5fa3c7;
}

.modal-box input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  margin-bottom: 5px;
}

.badge-available{
  color: white;
}

.badge-locked{
  color: white;
}

.badge-late {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.questionnaire-block {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.questionnaire-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.questionnaire-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.questionnaire-block-body {
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-answer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.q-answer-question {
  flex: 1;
  font-size: 14px;
  opacity: 0.8;
}

.q-answer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-answer-value {
  font-size: 14px;
  font-weight: 500;
}

.score-total {
  font-size: 16px;
  font-weight: 600;
  color: #5fa3c7;
  margin-bottom: 10px;
}

.score-badge {
  font-size: 12px;
  background: rgba(95, 163, 199, 0.2);
  color: #5fa3c7;
  border: 1px solid #5fa3c7;
  border-radius: 20px;
  padding: 2px 8px;
}

.session-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex: 1;
}

.session-questionnaires {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  color: white;
}

.session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.session-questionnaires {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-date {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 4px;
}


.session-late {
  border-left: 3px solid #ff6b6b;
}

.session-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
}

.session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}


.q-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.q-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-card {
  margin-bottom: 20px;
}

.profile-card .section-header {
  margin-bottom: 15px;
}



.therapist-name {
  font-size: 12px;
  opacity: 0.6;
  margin-right: 5px;
}


.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0 25px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #5fa3c7;
  color: #5fa3c7;
}

.filter-btn.active {
  background: #5fa3c7;
  border-color: #5fa3c7;
  color: white;
}

.session-created-by {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 2px;
}


.q-creator {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 2px;
}


.option input[type="text"],
.option input[type="number"] {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
}


.btn-danger {
  border-color: #ffffff;
  color: #ffffff;
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.1);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-row .switch {
  flex-shrink: 0;
  width: 45px;
}

.toggle-row .slider {
  position: absolute;
  width: 45px;
}

.toggle-label {
  font-size: 15px;
  opacity: 0.9;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px 0 20px;
}

#dateFilter {
  width: 160px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
}

#clearDate {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}

#clearDate:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.sidenote{
  font-size: 15px;
  opacity: 0.7;
  font-style: italic;
  display: block;
  text-align: right;
}

.patientlist{
  color: white;
  font-size: 16px;
}




/* DASHBOARDS */

.dashboard-filters {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-title {
  font-weight: 600;
  font-size: 14px;
}

.chart-card-body {
  padding: 16px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
  font-size: 12px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #5fa3c7;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.dashboard-section {
  margin-bottom: 30px;
}

.dashboard-required {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-item.selected {
  background: rgba(95, 163, 199, 0.2);
  border-color: #5fa3c7;
}

.dashboard-greeting {
  margin-bottom: 40px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.greeting-date {
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.greeting-title {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.1;
}

.greeting-title em {
  font-style: italic;
  color: #5fa3c7;
}

.greeting-subtitle {
  font-size: 16px;
  opacity: 0.7;
  max-width: 600px;
  line-height: 1.6;
}

.greeting-alert {
  color: #ff6b6b;
  font-weight: 500;
}

.container-therapist-sessions {
  background: rgba(171, 206, 240, 0.363);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
}

.dashboard-week {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  margin-bottom: 30px;
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.week-label {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.5;
  text-transform: uppercase;
}

.week-dates {
  font-size: 13px;
  opacity: 0.6;
}

.week-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.week-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-stat-label {
  font-size: 12px;
  opacity: 0.5;
}

.week-stat-value {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.week-stat-sub {
  font-size: 12px;
  color: #ff6b6b;
}

.dashboard-alerts {
  margin-bottom: 30px;
}

.dashboard-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-alerts-card,
.dashboard-activity-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.alert-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-item:last-child {
  border-bottom: none;
}

.alert-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.alert-title {
  font-size: 14px;
  font-weight: 600;
}

.alert-desc {
  font-size: 13px;
  opacity: 0.6;
}

.alert-action {
  font-size: 12px;
  color: #5fa3c7;
  text-decoration: none;
  margin-top: 4px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(95, 163, 199, 0.3);
  color: #5fa3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.activity-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.activity-text {
  font-size: 13px;
  line-height: 1.4;
}

.activity-time {
  font-size: 11px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
}

.next-session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1a3a4a, #2c5364);
  border-radius: 16px;
  padding: 30px 36px;
  margin-bottom: 30px;
  gap: 20px;
}

.next-session-label {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.7;
  display: block;
  margin-bottom: 10px;
}

.next-session-date {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 8px;
}

.next-session-meta {
  font-size: 14px;
  opacity: 0.7;
}

.next-session-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.next-session-cal {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-month {
  font-size: 11px;
  opacity: 0.6;
  letter-spacing: 1px;
}

.cal-day {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.cal-weekday {
  font-size: 11px;
  opacity: 0.6;
  font-style: italic;
}

.dashboard-patient-left,
.dashboard-patient-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-patient-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
}

.card-label {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.5;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.card-title {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 16px;
}

.card-link {
  font-size: 13px;
  color: #5fa3c7;
  text-decoration: none;
  margin-left: auto;
}

.patient-questionnaire-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.patient-questionnaire-item:last-child {
  border-bottom: none;
}

.pq-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.pq-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pq-name {
  font-size: 14px;
  font-weight: 500;
}

.pq-meta {
  font-size: 12px;
  opacity: 0.5;
}

.pq-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-respond {
  font-size: 13px;
  color: #5fa3c7;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(95, 163, 199, 0.3);
  border-radius: 6px;
}

.note-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.note-item:last-child {
  border-bottom: none;
}

.note-date {
  font-size: 11px;
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 50px;
}

.note-text {
  font-size: 14px;
  font-style: italic;
  opacity: 0.8;
  line-height: 1.5;
}

.wellbeing-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 4px;
}

.score-big {
  font-size: 48px;
  font-weight: 300;
}

.score-max {
  font-size: 18px;
  opacity: 0.4;
}

.score-sub {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 16px;
}

.btn-full {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  color: white;
}


.orientations-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sessions-main{
  color: white;
}

.tab-content#historico{
  color:white;
}



.questionnaire-answers-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.q-answer-block {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}

.q-answer-block:last-child {
  border-bottom: none;
}

.q-answer-number {
  font-size: 12px;
  opacity: 0.4;
  min-width: 20px;
  padding-top: 2px;
}

.q-answer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-answer-question {
  font-size: 14px;
  opacity: 0.7;
}

.q-answer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-answer-value {
  font-size: 15px;
  font-weight: 500;
}

.score-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.score-big {
  font-size: 48px;
  font-weight: 300;
}

.score-cutoff {
  font-size: 13px;
  opacity: 0.5;
}

/* ===== RESPONSIVIDADE — TABLET E MOBILE ===== */

@media (max-width: 1024px) {

  /* Tabelas em grid passam a cards empilhados */
  .patients-table-header,
  .questionnaire-table-header,
  .history-table-header {
    display: none;
  }

  .patients-table-row,
  .questionnaire-table-row,
  .history-table-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 16px;
  }

  .patients-table-row > *,
  .questionnaire-table-row > *,
  .history-table-row > * {
    flex: 0 0 auto;
  }

  /* O primeiro elemento de cada linha (nome/título) ocupa a linha toda */
  .patients-table-row > *:first-child,
  .questionnaire-table-row > *:first-child,
  .history-table-row > *:first-child {
    flex: 1 1 100%;
  }

  /* Info grid do perfil passa a 1 coluna */
  .info-grid {
    grid-template-columns: 1fr;
  }

  /* Sessões + sidebar do terapeuta empilham, sidebar desce */
  .sessions-two-col {
    grid-template-columns: 1fr;
  }

  .sessions-sidebar {
    order: 2;
  }

  .sessions-main {
    order: 1;
  }

  /* Modais não ficam cortados em ecrãs estreitos */
  .modal-box {
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
  }

  /* User cards empilham quando há muitos botões de ação */
  .user-card {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 16px;
    min-height: auto;
  }
}

@media (max-width: 640px) {

  .patients-table-row,
  .questionnaire-table-row,
  .history-table-row {
    padding: 12px;
    font-size: 14px;
  }

  .info-grid {
    gap: 10px;
  }

  .modal-box {
    width: 94%;
    padding: 1.25rem;
  }

  .user-card {
    padding: 10px 12px;
  }

  .patient-avatar,
  .therapist-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}