.appointment-details {
  margin: 24px 36px;
  background-color: #FFFFFF;
  height: 756px;
  border-radius: 18px;
  padding: 36px;

  .appointment-details-header {
    display: flex;
    justify-content: space-between;
  }

  .title {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
  }

  .appointment-search {
    padding-left: 1rem;
  }

  .search-sort-filters-parent {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 1rem;

    .sort-dropdown {
      border: 1px solid #CACED8;
      border-radius: 8px;
      padding: 16px;
      background-color: #f9f9f9;
      width: 100%;
    }

    .sort-field {
      margin-right: 0.5rem;
    }

    .filter-icon {
      margin-left: 0.5rem;
      cursor: pointer;
    
      .filter-icon-img {
        width: 34px;
        height: 34px;
      }
    }
  }

  .search-field {
    display: flex;
    align-items: center;
    border: 1px solid #CACED8;
    border-radius: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    margin-right: 0.5rem;
    flex-grow: 1;
  }
  
  .search-field input[type="text"] {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 8px;
    border-radius: 8px;
  }
  
  .search-field input[type="submit"] {
    background-color: #3788E5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
  }

  table {
    width: 100%;
    border-spacing: 15px;

    th {
      text-align: left;
    }
  }
}

.appointment-data {
  padding: 24px 36px;

  .data-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;

    .left-section, .right-section{
      display: flex;
      flex-direction: column;
      row-gap: 20px;
      width: 516px;
    }

    .form-control {
      height: 44px;
      width: 100%;
      border-radius: 8px;
      border: 1px solid #CACED8;
    }

    #appointment_patient_id {
      height: 44px;
      width: 100%;
      border-radius: 8px;
      border: 1px solid #CACED8;
    }

    .field {
      width: 100%;
      display: flex;
      flex-direction: column;
    }
  }
}
.assesment {
  padding-bottom: 40px;

  .dropdowns-div {
    display: flex;
    justify-content: space-between;
    border: 5px solid #6AA4EC;
    margin: 2rem 5rem;

    .select-survey, .select-method, .select-mechanism, .send-to-patient {
      flex: 1;
      padding: 1rem;
    }

    .select-survey {
      .survey-heading {
        font-size: 1.4rem;
        font-weight: 500;
        margin: 30px 0;
      }
      .survey-img {
        width: 24px;
        height: 24px;
        margin-top: 10px;
      }
    }

    .select-method {
      .method-heading {
        font-size: 1.4rem;
        font-weight: 500;
        margin: 30px 0;
      }
      .human-brain-img {
        width: 24px;
        height: 24px;
        margin-top: 10px;
      }
    }

    .select-mechanism {
      .mechanism-heading {
        font-size: 1.4rem;
        font-weight: 500;
        margin: 30px 0;
      }
      
      #mechanism-dropdown {
        padding: 8px;
        font-size: 16px;
        border-radius: 4px;
        border: 1px solid #ccc;
        width: 50%;
      }
      .human-brain-img {
        width: 24px;
        height: 24px;
        margin-top: 10px;
      }
    }

    .send-to-patient {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
  }

  .assessment-data {
    border: 1px solid grey;
    border-radius: 4px;
    padding: 16px;
    font-family: Arial, sans-serif;
    width: 92%;
    margin-left: 3rem;
  }
  
  .assessment-data .assessment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .assessment-data .dots-icon {
    cursor: pointer;
    font-size: 20px;
  }
  
  .assessment-data table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .assessment-data thead {
    border-bottom: 1px solid grey;
  }
  
  .assessment-data thead th {
    text-align: left;
    font-weight: normal;
    padding: 8px;
    color: black;
  }
  
  .assessment-data tbody td {
    padding: 8px;
    color: grey;
  }
  
  .assessment-data tbody td:first-child {
    font-weight: bold;
    color: black;
  }
}

.sort-dropdown {
  border: 1px solid #CACED8;
  border-radius: 8px;
  padding: 16px;
  background-color: #f9f9f9;
  width: 100%;
}
.dashboard {
  padding: 36px;

  .cardbar {
    display: flex;
    justify-content: space-between;

    .card {
      width: 260px;
      background-color: white;
      padding: 22px 20px 34px 32px;
      border: 1px solid #E7E7E7;
      border-radius: 8px;

      .title {
        display: flex;
        color: #637381;
        font-size: 20px;
        font-weight: 700;
        justify-content: space-between;
        align-items: center;
      }

      .body {
        margin-top: 10px;
        display: flex;
        color: #212B36;
        font-weight: 700;
        font-size: 40px;
        justify-content: space-between;
        align-items: baseline;

        .percent {
          color: #45CB85;
          font-size: 14px;
          font-weight: 500;
        }
      }
    }
  }

  .alerts, .patients {
    margin-top: 30px;

    .title{
      font-size: 32px;
      font-weight: 600;
      line-height: 30px;
      text-align: left;      
    }

    table {
      width: 100%;
      border-collapse: collapse;

      tr {
        border: 1px solid #E7E7E7;
      }

      th, td {
        text-align: left;
        font-size: 20px;
        padding: 20px;
      }
    }

    .alert-list {
      margin-top: 10px;
      background-color: white;
      border-radius: 8px;


      .vitals {
        column-gap: 6px;
        display: flex;
        font-size: 16px;

        span{
          color: var(--green);
        }

        a {
          text-decoration: none;
        }
      }
    }
  }

  .search-sort-filters-parent {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 1rem;

    .monthly-filter {
      display: flex;
      margin-right: 0.5rem;
    }

    .sort-dropdown {
      border: 1px solid #CACED8;
      border-radius: 8px;
      padding: 16px;
      background-color: #f9f9f9;
      width: 100%;
    }

    .sort-field {
      margin-right: 0.5rem;
    }

    .filter-icon {
      margin-left: 0.5rem;
      cursor: pointer;
    
      .filter-icon-img {
        width: 34px;
        height: 34px;
      }
    }
  }

  .search-field {
    display: flex;
    align-items: center;
    border: 1px solid #CACED8;
    border-radius: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    margin-right: 0.5rem;
    flex-grow: 1;
  }
  
  .search-field input[type="text"] {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 8px;
    border-radius: 8px;
  }
  
  .search-field input[type="submit"] {
    background-color: #3788E5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
  }
}
.insurance {
  .insurance-header {
    margin: 1rem 1rem 1rem 3rem;
    font-size: 3.5rem;
    font-weight: 500;
  }

  .insurance-list-parent {
    background-color: #FFFFFF;
    padding: 36px;
    margin: 2rem;
    border-radius: 48px;
    font-weight: 700;
    text-align: left;
    width: -webkit-fill-available;
    display: flex;
    flex-direction: column;

    .edit-btn-div {
      display: flex;
      justify-content: end;
      margin-right: 8rem;

      .edit-btn {
        border-radius: 8px;
        padding: 5px 45px;
      }
    }

    .insurance-card-parent {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;

      .insurance-card-heading {
        font-size: 1.5rem;
      }

      .insurance-card-buttons {
        padding: 10px;

        .btn.btn-outline-primary {
          background-color: white;
          color: #3888E5;
          border-color: #3888E5;
          border: 2px solid #3888E5;
        }

        .btn.btn-outline-primary:hover {
          background-color: #3888E5;
          color: white;
        }
      }
    }

    .insurance-grid {
      display: flex;
      flex-direction: column;
      width: 100%;

      .insurance-grid-header {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        background-color: #3788E5;
        color: white;
        font-weight: bold;
        padding: 20px;
        border-radius: 8px;
        opacity: 0.9;
        margin-bottom: 2rem;
      }

      .insurance-grid-body {
        display: flex;
        flex-direction: column;

        .insurance-grid-row {
          display: grid;
          grid-template-columns: repeat(7, 1fr);
          border: 1px solid grey;
          padding: 20px;
          align-items: center;
          font-size: 20px;
          border-radius: 8px;
          margin-bottom: 1rem;

          .eligibility-btn {
            border-radius: 8px;
          }
        }

        .insurance-grid-row:nth-child(even) {
          background-color: #f9f9f9; /* Alternating row background */
        }
      }
      .insurance-grid-header div,
      .insurance-grid-row div {
        text-align: left;
      }
    }
  }
}

.new-insurance {
  padding: 24px 36px;

    .form-control {
      height: 44px;
      width: 100%;
      border-radius: 8px;
      border: 1px solid #CACED8;
    }

    .field {
      width: 50%;
      display: flex;
      flex-direction: column;
    }

    .buttons {
      margin-top: 20px;
      display: flex;
      column-gap: 36px;

      .submit{
        font-size: 18px;
      }
    }
}
.login {
  width: 100%;
  height: 100%;
  background: linear-gradient(112.1deg, rgb(32, 38, 57) 11.4%, rgb(63, 76, 119) 70.2%);
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;

  h1 {
    text-align: center;
  }

  .logo {
    width: 300px;
    height: 100px;
  }

  .m-top {
    margin-top: 20px;
    a {
      color: white;
      text-decoration: none;

      &:hover{
        text-decoration: underline;
      }
    }
  }

  .center-modal {
    margin: auto;
    width: 380px;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);

    .custom-field {
      input {
        width: -webkit-fill-available;
        border: none;
        border-bottom: 1px solid white;
        background: transparent;
        color: white;
      }
    }
  }
}
.notes-data {
  background-color: white;
  margin: 36px;
  padding: 20px;

  .notes{
    margin-top: 20px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  
    thead {
      background-color: #3788E5;
      opacity: 0.9;
      color: white;
    }
  
    th, td {
      text-align: left;
      font-size: 20px;
      padding: 20px;
    }
  }
}

.edit-note{
  padding: 20px;

  .form-group{
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    width: 50%;
  }
}
.patient-details {
  margin: 24px 36px;
  background-color: #FFFFFF;
  height: 810;
  border-radius: 18px;
  padding: 36px;
  padding-bottom: 10px !important;

  .patient-details-header {
    display: flex;
    justify-content: space-between;
  }

  .title {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
  }

  .patient-search {
    padding-left: 1rem;
  }
  .search-sort-filters-parent {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 1rem;

    .sort-dropdown {
      border: 1px solid #CACED8;
      border-radius: 8px;
      padding: 16px;
      background-color: #f9f9f9;
      width: 100%;
    }

    .sort-field {
      margin-right: 0.5rem;
    }

    .filter-icon {
      margin-left: 0.5rem;
      cursor: pointer;
    
      .filter-icon-img {
        width: 34px;
        height: 34px;
      }
    }
  }

  .search-field {
    display: flex;
    align-items: center;
    border: 1px solid #CACED8;
    border-radius: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    margin-right: 0.5rem;
    flex-grow: 1;
  }
  
  .search-field input[type="text"] {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 8px;
    border-radius: 8px;
  }
  
  .search-field input[type="submit"] {
    background-color: #3788E5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
  }

  table {
    width: 100%;
    border-spacing: 15px;

    th {
      text-align: left;
    }
  }

  .vitals {
    display: flex;
    column-gap: 6px;
    
    span{
      color: var(--green);
    }
    
    a {
      text-decoration: none;
    }
  }
}

.details-bar {
  display: flex;
  column-gap: 24px;
  padding: 30px 30px 10px;
  max-height: 310px;

  .details-section {
    background-color: #FFFFFF;
    padding: 36px;
    border-radius: 48px;
    font-weight: 700;
    text-align: left;
    width: -webkit-fill-available;

    .border {
      border: 1px solid #00000026;
      border-radius: 18px;
      padding: 8px 20px;
      color: #271E4A;
      margin-bottom: 20px;

      .name {
        font-size: 24px;
        line-height: 35.88px;
      }

      .bottom-section {
        margin-top: 6px;
        padding: 0 48px;
        font-size: 18px;
        line-height: 21.91px;
        display: flex;
        justify-content: space-between;

        .m-top {
          margin-top: 8px;
        }

        .left-section .list {
          column-gap: 10px;
        }

        .right-section .list {
          div {
            width: 150px;
          }

          .elem {
            width: 300px;
          }
        }

        .list {
          display: flex;
          justify-content: start;

          .elem {
            color: #271E4ACC;
            font-weight: 500;
          }
        }
      }
    }
  }
}

.patient-attributes {
  background-color: #3788E5;
  height: 75px;
  opacity: 0.75;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;

  .list-elem {
    margin-top: 15px;
    text-align: center;
    color: white;

    a {
      color: white;
      text-decoration: none;
    }

    a.active {
      border-bottom: 2px solid #F8F8F8;
    }
  }
}

.patient-data {
  padding: 20px;
  
  .form-group {
    background-color: white;
    border-radius: 10px;
    padding: 20px;

    .data-section {
      display: flex;
      justify-content: space-between;

      .title {
        color: #CACED8;
      }

      .form-control {
        height: 44px;
        width: 100%;
        border-radius: 8px;
        border: 1px solid #CACED8;
      }

      .left-section, .right-section{
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        width: 516px;
        color: #083A50;


        .name {
          display: flex;
          column-gap: 12px;

          .first_name, .last_name {
            width: 252px;
          }
        }

        .dob select{
          height: 44px;
          width: 32.8%;
          text-align: center;
          border-radius: 8px;
          border: 1px solid #CACED8;
        }

        .code {
          width: 76px;
          height: 48px;        
        }

        .number-field {
          display: flex;
          column-gap: 12px;
        }

        label {
          display: block !important;
          margin-bottom: 4px;
        }
      }
    }

    .button-section {
      margin-top: 40px;
    }

    .btn-primary {
      width: 128px;
      height: 42px;
      padding: 11px 0px;
      border-radius: 8px;
      background: #3788E5;
      border: 1px !important;
      color: white;
    }
  }
}

.blood-pressure-section {
  padding: 40px;

  .vitals-section {
    display: flex;
    justify-content: space-between;

    .un-used {
      opacity: 0.2;
    }

    .card {
      padding: 20px 20px 0;
      background-color: white;
      border-radius: 12px;
      border: 1px solid #E8E7E7;

      .title {
        display: flex;
        align-items: center;
        column-gap: 16px;
        /* font-family: Mulish; */
        font-size: 16px;
        font-weight: 600;
        line-height: 20.08px;
      }

      .data {
        margin-top: 18px;
        /* font-family: Mulish; */

        .bold {
          font-size: 32px;
          font-weight: 400;
          line-height: 40.16px;

          span {
            font-size: 22px;
            font-weight: 700;
            line-height: 15.06px;
            color: #818181;
          }
        }
      }

      .indicator {
        margin-top: 8px;
        background-color: #d4edda;
        width: min-content;
        padding: 4px 8px;
        border-radius: 4px;
      }
    }
  }

  .settings {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;

    .ranges {
      accent-color: green;

      .bar {
        background-color: #3788E5;
        opacity: 0.75;
        display: flex;
        color:white;
        width: 800px;

        .list-item {
          cursor: pointer;
          padding: 8px 16px;
          flex-grow: 1;
          text-align: center;

          &.active, &:hover {
            background-color: #4875a8;
          }
        }
      }

      .range-values {
        padding: 16px;
        
        .range-form {
          display: flex;
          flex-direction: column;
          gap: 16px;

          .range-group {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;

            .range-edge {
              width: calc(50% - 8px);
              display: flex;
              align-items: center;
              gap: 10px;

              .range-label{
                width: 102px;
              }

              .range-field{
                box-sizing: border-box;
                flex-grow: 1;
                height: 32px;
                padding: 6px;
                border-radius: 8px;
                border-width: 1px;
                border-style: solid;
                border-color: rgb(202, 206, 216);
              }
            }
          }
        }
      }
    }
  }
}

.devices-details {
  padding: 40px 20px; 
  
  .form-data{
    background-color: white;
    border-radius: 47px;
    padding: 42px 26px 30px;

    .title {
      display: flex;
      justify-content: space-between;

      .heading {
        font-weight: 500;
        font-size: 24px;
      }

      .add-device-btn {
        background: #FF706F;
        border: none;
        color: white;
        border-radius: 5px;
        font-weight: 600;
        font-size: 14px;
        padding: 8px;
        text-decoration: none;
      }
    }

    table {
      margin-top: 20px;
      width: 100%;
      border-collapse: collapse;

      thead {
        background-color: #3788E5;
        opacity: 0.9;
        color: white;
      }

      th, td {
        text-align: left;
        font-size: 20px;
        padding: 20px;
      }
    }
  }

  .search-field {
    display: flex;
    align-items: center;
    column-gap: 8px;
  }
  
  .search-field input[type="search"] {
    align-items: center;
    border: 1px solid #CACED8;
    border-radius: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    margin-right: 0.5rem;
  }
}

.new-device, .new-time-log {
  padding: 40px;

  .form-group{
    padding: 20px;
    background-color: white;
    border-radius: 16px;

    .form-control {
      height: 44px;
      width: 100%;
      border-radius: 8px;
      border: 1px solid #CACED8;
    }

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

.time-logs {
  padding: 20px;

  .time-logs-date {
    margin-left: 8px;
    margin-right: 8px;
    padding: 8px;
    border-radius: 8px;
  }

  .name-search-field {
    margin-left: 8px;
    margin-right: 8px;
    padding: 8px;
    border-radius: 8px;
  }

  .total-time {
    text-align: end;

    .blue {
      color: #3788E5;
    }
  }

  .logs-section {
    padding: 32px;
    background-color: white;

    .top-bar{
      display: flex;
      justify-content: space-between;
    }

    .logs{
      margin-top: 20px;
    }

    table {
      width: 100%;
      border-collapse: collapse;

      thead {
        background-color: #3788E5;
        opacity: 0.9;
        color: white;
      }

      th, td {
        text-align: left;
        font-size: 20px;
        padding: 20px;
      }
    }
  }
}

.btn {
  border: none;
  color: white;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  padding: 8px;
  text-decoration: none;
}

.btn-primary {
  background: #3788E5;
  cursor: pointer;
}

.btn-secondary {
  background: #FF706F;
}

.back-btn {
  margin: 20px auto;
  max-width: fit-content;
}

.care-plan {
  padding: 40px;

  .content {
    padding: 40px;
    background-color: white;
    border-radius: 36px;

    .cards-section {
      margin-top: 20px;
      display: flex;
      flex-wrap: wrap; 
      justify-content: space-between;

      .card {
        flex: 1 1 calc(50% - 10px); 
        margin: 5px; 
        background-color: #f2f2f2; 
        padding: 20px;
        box-sizing: border-box; 
        border-radius: 8px; 
        .heading {
          font-weight: 600;
          margin-bottom: 20px;
        }

        .ideal {
          color:var(--green);
        }

        .warning {
          color: var(--warning);
        }

        .critical {
          color: var(--danger);
        }

        .bottom {
          font-weight: 600;
          margin-top: 20px;
        }
      }
    }
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);

  .center-dialog {
    right: 35% !important;
  }

  .modal-dialog {
    position: absolute;
    top: 18rem;
    right: 5rem;
    width: 45%;
    max-width: 600px;

    .modal-content {
      border-radius: 10px;
      background-color: white;
      border: none;
      padding: 20px;

      .modal-body {
        padding: 20px;

        .grid-container {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          grid-gap: 1rem;
          width: 100%;
        }

        .grid-item {
          display: flex;
          flex-direction: column;
          width: 95%;
        }

        label {
          font-weight: bold;
          margin-bottom: 8px;
        }

        .dropdown-field {
          border: 1px solid #CACED8;
          border-radius: 8px;
          padding: 10px;
          background-color: #f9f9f9;
          width: 100%;
        }
      }

      .modal-footer {
        display: flex;
        justify-content: space-between;
        padding-top: 20px;
      }
    }
  }
}

.vital-cards {
  padding: 36px;

  .cardbar {
    display: flex;
    column-gap: 50px;

    .card {
      width: 318px;
      height: 200px;
      background-color: white;
      padding: 22px 20px 34px 32px;
      border: 1px solid #E7E7E7;
      border-radius: 8px;

      .title {
        display: flex;
        color: #637381;
        font-size: 20px;
        font-weight: 700;
        justify-content: space-between;
        align-items: center;
      }

      .body {
        margin-top: 10px;
        display: flex;
        color: #212B36;
        font-weight: 500;
        font-size: 30px;
        flex-direction: column;
        justify-content: space-between;
        align-items: baseline;

        .percent {
          color: #45CB85;
          font-size: 14px;
          font-weight: 500;
        }
      }
    }
  }
}

.vital-logs {
  padding: 36px;
  background-color: white;
  table {
    width: 100%;
    border-collapse: collapse;
  
    thead {
      background-color: #3788E5;
      opacity: 0.9;
      color: white;
    }
  
    th, td {
      text-align: left;
      font-size: 20px;
      padding: 20px;
    }

    .vital-timestamp {
      margin-top: 6px;
      font-size: 14px;
      color: #6c757d;
      font-weight: normal;
    }
  }
}

.delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;

  &:hover {
    background-color: #c82333;
  }
}

.patient-data {
  .field--toggle {
    margin-top: 20px;
    width: 100%;
    max-width: 420px;
  }

  .toggle-switch {
    display: block;
    cursor: pointer;
    user-select: none;
  }

  .toggle-switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .toggle-switch-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition:
      border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      background 0.28s ease;
  }

  .toggle-switch:hover .toggle-switch-row {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .toggle-switch-input:focus-visible + .toggle-switch-row {
    outline: none;
    border-color: #3788e5;
    box-shadow: 0 0 0 3px rgba(55, 136, 229, 0.28);
  }

  .toggle-switch-ui {
    flex-shrink: 0;
    padding-top: 2px;
  }

  .toggle-switch-track {
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08);
    position: relative;
    transition:
      background 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.32s ease;
  }

  .toggle-switch-thumb {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow:
      0 2px 6px rgba(15, 23, 42, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transition:
      transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
      background 0.28s ease,
      box-shadow 0.28s ease;
  }

  .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-track {
    background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
    box-shadow:
      inset 0 2px 4px rgba(127, 29, 29, 0.25),
      0 0 20px rgba(225, 29, 72, 0.35);
  }

  .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-thumb {
    transform: translateX(22px);
    background: linear-gradient(180deg, #ffffff 0%, #ffe4e6 100%);
    box-shadow:
      0 3px 10px rgba(190, 18, 60, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  }

  .toggle-switch-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .toggle-switch-title {
    font-size: 15px;
    font-weight: 600;
    color: #212b36;
  }

  .toggle-switch-desc {
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    transition: opacity 0.22s ease;
  }

  .toggle-switch-desc--active {
    display: none;
    color: #be123c;
    font-weight: 500;
  }

  .toggle-switch-desc--inactive {
    display: block;
  }

  .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-desc--inactive {
    display: none;
  }

  .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-desc--active {
    display: block;
  }

  .toggle-switch-input:checked + .toggle-switch-row {
    border-color: rgba(225, 29, 72, 0.35);
    background: linear-gradient(145deg, #fff1f2 0%, #ffffff 55%);
  }

  .toggle-switch.toggle-switch--positive .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-track {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow:
      inset 0 2px 4px rgba(30, 58, 138, 0.35),
      0 0 20px rgba(37, 99, 235, 0.35);
  }

  .toggle-switch.toggle-switch--positive .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-thumb {
    background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
    box-shadow:
      0 3px 10px rgba(37, 99, 235, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  }

  .toggle-switch.toggle-switch--positive .toggle-switch-input:checked + .toggle-switch-row {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(145deg, #eff6ff 0%, #ffffff 58%);
  }

  .toggle-switch.toggle-switch--positive .toggle-switch-desc--active {
    color: #1d4ed8;
  }

  @media (prefers-reduced-motion: reduce) {
    .toggle-switch-thumb,
    .toggle-switch-track,
    .toggle-switch-row,
    .toggle-switch-desc {
      transition-duration: 0.01ms !important;
    }
  }
}

.reports {
  margin: 24px 36px 40px;
  padding: 0;
  max-width: 960px;
}

.reports__header {
  margin-bottom: 28px;
}

.reports__page-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #212B36;
}

.reports__page-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #637381;
}

.report-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 32px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(33, 43, 54, 0.08);
}

.report-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212B36;
}

.report-card__description {
  margin: 0 0 24px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #637381;
  max-width: 52rem;
}

.report-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.report-form {
  display: flex;
  flex-direction: column;
}

.report-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-top: 14px;
}

.report-export {
  padding: 20px 0 0;
  border-top: 1px solid #E8ECF4;
}

.report-export:first-of-type {
  padding-top: 0;
  border-top: none;
}

.report-export + .report-export {
  margin-top: 8px;
}

.report-export__label {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #919EAB;
}

.reports .field {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.reports .field > label {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #637381;
}

.reports .field + .field {
  margin-top: 14px;
}

.reports .report-form__row .field + .field {
  margin-top: 0;
}

.reports .form-control,
.reports #patient_id {
  height: 44px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #CACED8;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 14px;
  color: #212B36;
  background-color: #ffffff;
}

.reports select.form-control {
  appearance: auto;
  padding-right: 8px;
}

.reports .button-section {
  margin-top: 24px;
  padding-top: 4px;
}

.reports .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.reports .btn-primary {
  background: #3788E5;
  color: #ffffff;
}

.reports .btn-secondary {
  background: #FF706F;
  color: #ffffff;
}

.reports .btn:hover {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .reports {
    margin: 16px;
  }

  .report-card {
    padding: 20px;
    border-radius: 14px;
  }

  .report-form__row {
    grid-template-columns: 1fr;
  }

  .reports .report-form__row .field + .field {
    margin-top: 14px;
  }

  .report-card__actions {
    flex-direction: column;
  }

  .report-card__actions .btn {
    width: 100%;
  }
}

.patient-report {
  .details-section {
    display: flex;
    flex-direction: column;

    .row {
      display: flex;
      flex-direction: row;

      .bold {
        font-weight: bold;
      }
    }
  }
}

.hospital-report,
.monthly-report {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ddd;
}

.hospital-report h2,
.monthly-report h2 {
  margin-bottom: 10px;
  color: #333;
}

.hospital-report p,
.monthly-report p {
  color: #666;
  margin-bottom: 15px;
}

.hospital-report .field,
.monthly-report .field {
  margin-bottom: 15px;
}

.hospital-report .button-section,
.monthly-report .button-section {
  margin-top: 20px;
}

.btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
  color: white;
}

.opt-in-form-horizontal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rooms-parent {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
  gap: 0;
  overflow: hidden;
}

.rooms-parent .chat-avatar {
  margin: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.rooms-parent .chat-sidebar {
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(280px, 30%, 380px);
  max-width: 380px;
  min-width: 260px;
  width: 100%;
  background-color: #ffffff;
  border-right: 1px solid #e6eaf2;
  border-radius: 12px 0 0 12px;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
  padding: 0;
  min-height: 0;
}

.rooms-parent .chat-sidebar-me {
  flex-shrink: 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #eef1f7;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}

.rooms-parent .chat-sidebar-me .profile-details {
  padding: 0;
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.rooms-parent .chat-filters-form {
  flex-shrink: 0;
}

.rooms-parent .chat-search {
  flex-shrink: 0;
  padding: 12px 16px 0;
  margin: 0;
}

.rooms-parent .chat-location-filter {
  padding: 8px 16px 12px;
}

.rooms-parent .chat-location-filter__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.rooms-parent .chat-location-filter__select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rooms-parent .chat-location-filter__select:hover {
  border-color: #c5cdd9;
  background-color: #fff;
}

.rooms-parent .chat-location-filter__select:focus {
  outline: none;
  border-color: #3788e5;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(55, 136, 229, 0.18);
}

.rooms-parent .chat-location-filter .ss-main {
  width: 100%;
  border-radius: 10px;
  border-color: #d8dee8;
  min-height: 42px;
}

.rooms-parent .chat-location-filter .ss-main:focus-within {
  border-color: #3788e5;
  box-shadow: 0 0 0 3px rgba(55, 136, 229, 0.18);
}

.rooms-parent .chat-search .search-field {
  position: relative;
}

.rooms-parent .chat-search .search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 40px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rooms-parent .chat-search .search-input::placeholder {
  color: #94a3b8;
}

.rooms-parent .chat-search .search-input:hover {
  border-color: #c5cdd9;
  background-color: #fff;
}

.rooms-parent .chat-search .search-input:focus {
  outline: none;
  border-color: #3788e5;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(55, 136, 229, 0.18);
}

.rooms-parent .chats-heading {
  flex-shrink: 0;
  margin: 4px 0 8px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.rooms-parent .chat-tabs-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.rooms-parent .chat-tab-bar {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  padding: 4px 12px 8px;
  border-bottom: 1px solid #eef1f7;
}

.rooms-parent .chat-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rooms-parent .chat-tab:hover {
  background-color: #f1f5f9;
  color: #334155;
}

.rooms-parent .chat-tab--active {
  background-color: #e8f1fc;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(55, 136, 229, 0.25);
}

.rooms-parent .chat-tab-badge {
  min-width: 1.1rem;
  padding: 0 5px;
  height: 17px;
  line-height: 17px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.rooms-parent .chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.rooms-parent .chat-panel--hidden {
  display: none !important;
}

.rooms-parent .chat-group-rooms-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 8px 0;
}

.rooms-parent .chat-group-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}

.rooms-parent .group-room-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3788e5 0%, #60a5fa 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(55, 136, 229, 0.2);
}

.rooms-parent .group-room-icon--header {
  width: 2.75rem;
  height: 2.75rem;
}

.rooms-parent .chat-contacts-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 8px;
}

.rooms-parent .chat-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}

.rooms-parent .chat-profile-link {
  text-decoration: none;
  display: block;
  border-radius: 10px;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.rooms-parent .chat-profile-link:hover .chat-contact-card {
  background-color: #f1f5f9;
}

.rooms-parent .chat-contact-card {
  border-radius: 10px;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.rooms-parent .chat-contact-card--active {
  background-color: #e8f1fc !important;
  box-shadow: inset 0 0 0 1px rgba(55, 136, 229, 0.35);
}

.rooms-parent .chat-contact-card--active .name-email .name {
  color: #0b1c33;
  font-weight: 600;
}

.rooms-parent .chat-profile-div {
  color: inherit;
}

.rooms-parent .chat-profile-div .profile-details {
  padding: 10px 10px;
  display: flex;
  align-items: center;
  column-gap: 12px;
  color: #0b1c33;
}

.rooms-parent .chat-profile-div .profile-details.unread-msg {
  background-color: transparent;
  border-radius: 10px;
  box-shadow: inset 3px 0 0 #3788e5;
}

.rooms-parent .chat-contact-card--active .profile-details.unread-msg {
  box-shadow: none;
}

.rooms-parent .chat-profile-link:hover .chat-contact-card:not(.chat-contact-card--active) .profile-details.unread-msg {
  background-color: rgba(241, 245, 249, 0.9);
}

.rooms-parent .name-email {
  min-width: 0;
  flex: 1;
  opacity: 1;
}

.rooms-parent .chat-contact-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rooms-parent .chat-contact-name-row .name {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.rooms-parent .chat-unread-badge {
  flex-shrink: 0;
  min-width: 1.25rem;
  padding: 0 7px;
  height: 20px;
  line-height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35);
}

.rooms-parent .name-email .email {
  width: auto;
  max-width: 100%;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.rooms-parent .chat-pagination-div {
  flex-shrink: 0;
  padding: 10px 12px 14px;
  border-top: 1px solid #eef1f7;
  background: #fafbfd;
}

.rooms-parent .chat-pagination-div > div {
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
}

.rooms-parent .chat-pagination-div .custom-pagination {
  padding: 4px 8px !important;
  border-width: 1px !important;
}

.rooms-parent .chat-pagination-div .pagination-page,
.rooms-parent .chat-pagination-div .pagination-icon {
  font-size: 14px !important;
}

.rooms-parent .chat-pagination-div .per-page-selector {
  font-size: 12px !important;
}

.rooms-parent .chat-pagination-div .per-page-selector label {
  font-size: 12px !important;
  color: #64748b !important;
}

.rooms-parent .chat-pagination-div select {
  font-size: 12px !important;
  padding: 4px 8px !important;
}

.rooms-parent .personal-chat-div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(180deg, #f0f4fb 0%, #f7f8fb 40%, #eef2f8 100%);
  border-radius: 0 12px 12px 0;
  padding: 0;
  overflow: hidden;
}

.rooms-parent .chat-thread-header {
  flex-shrink: 0;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e6eaf2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rooms-parent .chat-thread-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rooms-parent .chat-thread-header-row .profile-details {
  flex: 1;
  min-width: 0;
}

.rooms-parent .group-members-details {
  position: relative;
  flex-shrink: 0;
}

.rooms-parent .group-members-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  user-select: none;
}

.rooms-parent .group-members-summary::-webkit-details-marker {
  display: none;
}

.rooms-parent .group-members-summary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.rooms-parent .group-members-summary-label {
  letter-spacing: 0.02em;
}

.rooms-parent .group-members-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e0e7ff;
  color: #3730a3;
}

.rooms-parent .group-members-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 280px;
  max-width: min(360px, 92vw);
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding: 10px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.rooms-parent .group-members-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rooms-parent .group-members-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.rooms-parent .group-members-item:hover {
  background: #f8fafc;
}

.rooms-parent .group-members-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.rooms-parent .group-members-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rooms-parent .group-members-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rooms-parent .group-members-item-email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rooms-parent .group-members-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  color: #475569;
  margin-top: 2px;
}

.rooms-parent .chat-thread-header .profile-details {
  padding: 0;
  display: flex;
  align-items: center;
  column-gap: 14px;
}

.rooms-parent .chat-thread-email {
  font-size: 13px;
  color: #64748b;
}

.rooms-parent .chat-messages-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 8px;
}

.rooms-parent .chat-messages-inner {
  padding-bottom: 8px;
}

.rooms-parent .chat-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  min-height: 320px;
}

.rooms-parent .chat-empty-state-card {
  text-align: center;
  max-width: 380px;
  padding: 40px 32px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e6eaf2;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.rooms-parent .chat-empty-state-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  filter: grayscale(0.2);
}

.rooms-parent .chat-empty-state-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
}

.rooms-parent .chat-empty-state-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
}

.rooms-parent .personal-chat-div .date-separator {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  text-align: center;
  color: #64748b;
}

.rooms-parent .personal-chat-div .date-separator hr {
  flex: 1;
  border: none;
  border-top: 1px solid #d8dee8;
  margin: 0 0.75rem;
}

.rooms-parent .personal-chat-div .date-label {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.rooms-parent #messages {
  padding-bottom: 0;
}

.rooms-parent .chat-message-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.rooms-parent .message-box {
  width: fit-content;
  max-width: min(560px, 85%);
  padding: 10px 14px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid #e8ecf4;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rooms-parent .message-sender-name {
  font-size: 12px;
  font-weight: 600;
  color: #3788e5;
  margin-bottom: 2px;
}

.rooms-parent .message-text {
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b;
  word-break: break-word;
}

.rooms-parent .message-time {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  text-align: right;
}

.rooms-parent .msg-form {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 20px 20px;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0) 0%, #f7f8fb 18%);
  border-top: 1px solid #e6eaf2;
}

.rooms-parent .msg-form .msg-form-input {
  display: flex !important;
  position: relative;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  margin-top: 0;
  unicode-bidi: isolate;
  gap: 0;
}

.rooms-parent .msg-form .input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  padding: 4px 6px 4px 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rooms-parent .msg-form .input-wrapper:focus-within {
  border-color: #3788e5;
  box-shadow: 0 0 0 3px rgba(55, 136, 229, 0.15);
}

.rooms-parent .msg-form .user-image {
  position: static;
  transform: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  margin: 0 8px 0 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.rooms-parent .msg-form .msg-content {
  flex: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 12px 12px 12px 0;
  height: auto;
  min-height: 48px;
  border: none !important;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  resize: none;
}

.rooms-parent .msg-form .msg-content:focus {
  outline: none;
  box-shadow: none;
}

.rooms-parent .msg-form .submit-btn {
  position: static;
  transform: none;
  align-self: stretch;
  margin: 4px 4px 4px 0;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 2;
}

@media (max-width: 900px) {
  .rooms-parent {
    flex-direction: column;
    min-height: auto;
  }

  .rooms-parent .chat-sidebar {
    flex: none;
    max-width: none;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border-right: none;
    border-bottom: 1px solid #e6eaf2;
    max-height: 45vh;
  }

  .rooms-parent .personal-chat-div {
    border-radius: 0 0 12px 12px;
    min-height: 50vh;
  }
}
.settings-page {
  padding: 40px;

  .edit-page {
    padding: 10px;
  }

  .index-page, .edit-page {
    .form-control {
      height: 44px;
      width: 100%;
      border-radius: 8px;
      border: 1px solid #CACED8;
      padding-left: 14px;
      padding-right: 14px;
      box-sizing: border-box;
    }

    .field {
      width: 50%;
      display: flex;
      flex-direction: column;
    }

    .actions {
      margin-top: 20px;
      display: flex;
      column-gap: 36px;

      .submit{
        font-size: 18px;
      }
    }

    h1 {
      margin: 0 0 1.25rem;
      font-size: 1.5rem;
      font-weight: 600;
      color: #212B36;
    }

    form + h1 {
      margin-top: 2.5rem;
    }

    #error_explanation {
      margin-bottom: 1.25rem;
      padding: 12px 16px;
      background: #f8d7da;
      border: 1px solid #f5c6cb;
      border-radius: 8px;
      color: #721c24;

      h2 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
      }

      ul {
        margin: 8px 0 0;
        padding-left: 1.25rem;
      }
    }

    .field > label {
      margin-bottom: 8px;
      font-weight: 500;
      font-size: 14px;
      color: #637381;
    }

    .field + .field {
      margin-top: 14px;
    }

    textarea.form-control {
      height: auto;
      min-height: 44px;
      padding-top: 12px;
      padding-bottom: 12px;
    }

    select.form-control {
      appearance: auto;
    }

    input.form-control:-webkit-autofill,
    input.form-control:-webkit-autofill:hover,
    input.form-control:-webkit-autofill:focus {
      -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
      box-shadow: 0 0 0 1000px #ffffff inset;
      caret-color: #212B36;
    }

    .ss-main {
      min-height: 44px;
      border-radius: 8px !important;
      border: 1px solid #CACED8 !important;
      box-sizing: border-box;
      padding-left: 10px !important;
      padding-right: 10px !important;
    }

    .ss-main .ss-values {
      overflow-y: auto !important;
      max-height: 5.5rem;
    }

    .field--toggle {
      margin-top: 20px;
      width: 50%;
      max-width: 420px;
    }

    .toggle-switch {
      display: block;
      cursor: pointer;
      user-select: none;
    }

    .toggle-switch-input {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .toggle-switch-row {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 14px 16px;
      background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      transition:
        border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.28s ease;
    }

    .toggle-switch:hover .toggle-switch-row {
      border-color: #cbd5e1;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    }

    .toggle-switch-input:focus-visible + .toggle-switch-row {
      outline: none;
      border-color: #3788e5;
      box-shadow: 0 0 0 3px rgba(55, 136, 229, 0.28);
    }

    .toggle-switch-ui {
      flex-shrink: 0;
      padding-top: 2px;
    }

    .toggle-switch-track {
      display: block;
      width: 52px;
      height: 30px;
      border-radius: 999px;
      background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
      box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08);
      position: relative;
      transition:
        background 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.32s ease;
    }

    .toggle-switch-thumb {
      position: absolute;
      top: 3px;
      left: 4px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
      box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
      transition:
        transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
        background 0.28s ease,
        box-shadow 0.28s ease;
    }

    .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-track {
      background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
      box-shadow:
        inset 0 2px 4px rgba(127, 29, 29, 0.25),
        0 0 20px rgba(225, 29, 72, 0.35);
    }

    .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-thumb {
      transform: translateX(22px);
      background: linear-gradient(180deg, #ffffff 0%, #ffe4e6 100%);
      box-shadow:
        0 3px 10px rgba(190, 18, 60, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
    }

    .toggle-switch-copy {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .toggle-switch-title {
      font-size: 15px;
      font-weight: 600;
      color: #212b36;
    }

    .toggle-switch-desc {
      font-size: 13px;
      line-height: 1.45;
      color: #64748b;
      transition: opacity 0.22s ease;
    }

    .toggle-switch-desc--active {
      display: none;
      color: #be123c;
      font-weight: 500;
    }

    .toggle-switch-desc--inactive {
      display: block;
    }

    .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-desc--inactive {
      display: none;
    }

    .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-desc--active {
      display: block;
    }

    .toggle-switch-input:checked + .toggle-switch-row {
      border-color: rgba(225, 29, 72, 0.35);
      background: linear-gradient(145deg, #fff1f2 0%, #ffffff 55%);
    }

    .toggle-switch.toggle-switch--positive .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-track {
      background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
      box-shadow:
        inset 0 2px 4px rgba(30, 58, 138, 0.35),
        0 0 20px rgba(37, 99, 235, 0.35);
    }

    .toggle-switch.toggle-switch--positive .toggle-switch-input:checked + .toggle-switch-row .toggle-switch-thumb {
      background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
      box-shadow:
        0 3px 10px rgba(37, 99, 235, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
    }

    .toggle-switch.toggle-switch--positive .toggle-switch-input:checked + .toggle-switch-row {
      border-color: rgba(37, 99, 235, 0.35);
      background: linear-gradient(145deg, #eff6ff 0%, #ffffff 58%);
    }

    .toggle-switch.toggle-switch--positive .toggle-switch-desc--active {
      color: #1d4ed8;
    }

    @media (prefers-reduced-motion: reduce) {
      .toggle-switch-thumb,
      .toggle-switch-track,
      .toggle-switch-row,
      .toggle-switch-desc {
        transition-duration: 0.01ms !important;
      }
    }

    table {
      margin-top: 20px;
      width: 100%;
      border-collapse: collapse;

      thead {
        background-color: #3788E5;
        opacity: 0.9;
        color: white;
      }

      th, td {
        text-align: left;
        font-size: 20px;
        padding: 20px;
      }
    }
  }

  .cardbar {
    display: flex;
    column-gap: 50px;

    .card {
      width: 260px;
      background-color: white;
      padding: 22px 20px 34px 32px;
      border: 1px solid #E7E7E7;
      border-radius: 8px;

      .title {
        display: flex;
        color: #637381;
        font-size: 20px;
        font-weight: 700;
        justify-content: space-between;
        align-items: center;
      }

      .body {
        margin-top: 10px;
        display: flex;
        color: #212B36;
        font-weight: 700;
        font-size: 40px;
        justify-content: space-between;
        align-items: baseline;

        .percent {
          color: #45CB85;
          font-size: 14px;
          font-weight: 500;
        }
      }
    }
  }

  .detailed-metrics {
    margin-top: 16px;

    .title {
      font-size: 20px;
      font-weight: 500;
    }

    .remote-patient-monitering {
      margin-top: 16px;
      background-color: white;
      padding: 16px;
      border: 1px solid #E7E7E7;
      border-radius: 8px;

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

      .body{
        display: flex;

        .patient-card {
          max-width: 600px;
          width: 100%;
          border: 1px solid #E7E7E7;
          border-radius: 8px;
  
          .header {
            padding: 8px;
            background-color: #f9f9f9;
            border-bottom: 1px solid #E7E7E7;
            border-radius: 8px 8px 0 0;
          }
  
          .body {
            padding: 16px;
            display: flex;
            flex-direction: column;
            row-gap: 8px;
  
            .row {
              display: flex;
              justify-content: space-between;
              border: 1px solid #E7E7E7;
              border-radius: 32px;
              padding: 4px 8px;
              
              .dot{
                background: white;
                border-radius: 36px;
                padding: 0 12px;
                margin-right: 12px;
              }
  
              .number-spot {
                background: white;
                border-radius: 16px;
                padding: 0 16px;
              }
            }
  
            .active {
              background-color: #c4f0d9;
            }
  
            .new {
              background-color: #f0e5c4;
            }
  
            .off-board {
              background-color: #dfdde5;
            }
  
            .complaint {
              background-color: #cee6ee;
            }
  
            .non-complaint {
              background-color: #cedaee;
            }
          }
        }

        .time-card {
          display: flex;

          .count-details {
            margin-top: 60px;
            width: 100%;
            max-width: 200px;
            .row {
              margin-top: 10px;
              display: flex;
              justify-content: space-between;
            }

            .five {
              color: blue;
            }

            .fifteen {
              color: red;
            }

            .twenty {
              color: orange;
            }
            .thirtyfive {
              color: green;
            }
            .forty {
              color: purple;
            }

            .forty-plus {
              color: darkblue;
            }
          }
        }
      }
    }
  }
}
.sidebar {
  background-color: #FEFEFE;
  max-width: 300px;
  width: 100%;
  color: #0B1C33;
  border-right: 1px solid #DAE3F8;


  .bar {
    padding: 16px 24px;

    .user-name {
      font-size: 32px;
    }

    .menu {
      margin-top: 24px;

      .divider {
        margin: 30px 0;
        border: 1px solid #DAE3F8;
      }
    }

    .botom-section {
      position: fixed;
      bottom: 0;
      color: #E53761;

      .profile-details {
        padding: 12px 24px;
        display: flex;
        align-items: center;
        column-gap: 15px;
        color: #0B1C33;

        .name-email {
          opacity: 0.7;
        }
      }
    }

    .list-item {
      padding: 12px 24px;
      
      .clear-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        column-gap: 10px;
        align-items: center;
      }

      .no-border {
        border: none;
        background-color: inherit;
      }
    }
  }
}
.tasks {
  margin: 24px 36px;
  background-color: #FFFFFF;
  height: 756px;
  border-radius: 18px;
  padding: 36px;
  
  .header{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .btn{
    height: fit-content;
  }

  table {
    width: 100%;
    border-spacing: 15px;

    th {
      text-align: left;
    }
  }
  .completed {
    background-color: var(--green);
  }

  .planned {
    background-color: var(--warning);
  }

  .overdue {
    background-color: var(--danger);
  }

  .task {
    border-radius: 36px;
    padding: 2px 8px;
    color: white;
  }
}
.topbar {
  background-color: #FFFFFF;
  max-height: 86px;
  padding: 20px 36px;
  border-bottom: 1px solid #E7E7E7;
  display: flex;
  justify-content: space-between;

  .title-section {
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-size: 20px;
    color: #0B1C33;
  }

  .right-section {
    display: flex;
    align-items: center;
    column-gap: 20px;

    .notification {
      width: 44px;
      height: 45px;
      background-color: #F4F7FF;
      border: 1px solid #E7E7E7;
      border-radius: 8px;
      padding: 10px;
    }
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 @import 'sidebar';

body {
  margin: 0;
  font-family: 'Poppins';
}

.container {
  display: flex;
  max-width: 1920px;
  margin: 0 auto;
  height: 100%;
  min-height: 100vh;

  .content-section {
    background-color: #F4F7FF;
    width: 100%;
  }
}

.change-height {
  height: 100% !important;
}

.hide {
  display: none;
}

.text-opacity {
  opacity: 0.7;
}

#myChart {
  max-width: 300px;
  max-height: 200px;
}

:root {
  --danger: #dc3545;
  --green: #45CB85;
  --primary: #007bff;
  --success: #28a745;
  --warning: #ffc107;
}

.unstyled-link {
  text-decoration: none;
  color: inherit;
}

.blood-pressure.critical {
  span {
    color: red !important;
  }

  svg path {
    stroke: red;
  }
}

.blood-pressure.warning {
  span {
    color: var(--warning) !important;
  }
  
  svg path {
    stroke: var(--warning);
  }
}

.heart-rate.critical{
  span {
    color: red !important;
  }
  
  svg path {
    stroke: red;
    fill: none;
  }
}

.heart-rate.warning{
  span {
    color: var(--warning) !important;
  }
  
  svg path {
    stroke: var(--warning);
    fill: none;
  }
}

.oxygen.critical {
  span {
    color: red !important;
  }
  
  svg path {
    fill: red;
  }
}

.glucose.critical {
  span {
    color: red !important;
  }

  svg path {
    fill: red;
  }
}

.temperature.critical {
  span {
    color: red !important;
  }
  
  svg path {
    fill: red;
  }
}

.weight.critical {
  span {
    color: red !important;
  }

  svg path {
    fill: red;
  }
}

.oxygen.warning {
  span {
    color: var(--warning) !important;
  }
  
  svg path {
    fill: var(--warning);
  }
}

.glucose.warning {
  span {
    color: var(--warning) !important;
  }
  
  svg path {
    fill: var(--warning);
  }
}

.temperature.warning {
  span {
    color: var(--warning) !important;
  }

  svg path {
    fill: var(--warning);
  }
}

.weight.warning {
  span {
    color: var(--warning) !important;
  }
  
  svg path {
    fill: var(--warning);
  }
}

.flash-messages {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 1000;
}

.error, .notice, .alert {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.notice {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.show-flash {
  opacity: 1;
}

.mark-button {
  float: right;
}

.notification-modal {
  top: 5rem !important;
  right: 12rem !important;
  width: max-content !important;

  .modal-content {
    border-radius: 10px;
    background-color: white;
    border: none;
    padding: 10px;

    .modal-body {
      padding: 10px;
      padding-top: 40px !important;
    }
  }
}

.ss-values {
  overflow-y: scroll;
}

.green-option {
  color: #155724;
}

.change-size {
  max-width: revert !important;
  right: 23% !important;

  .save-button {
    width: -webkit-fill-available;
    margin-top: 20px;
  }
}

.blood-pressure, .oxygen, .heart-rate, .temperature, .weight, .glucose {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.unread-msg {
  background: whitesmoke;
  border-radius: 16px;
}

.message-indication {
  background: red;
  border-radius: 50px;
  width: 20px;
  text-align: center;
  color: white;
}
