.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;
    }
  }
}
.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;
    }
  }
}

.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;
  }
}

.reports {
  padding: 40px;

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

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

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

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

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

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

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

.all-patients-report {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ddd;
}

.all-patients-report h2 {
  margin-bottom: 10px;
}

.all-patients-report p {
  color: #666;
  margin-bottom: 15px;
}

.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;
}
.rooms-parent {
  display: flex;
  flex-wrap: wrap;

  .chat-sidebar {
    background-color: #FFFFFF;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }

  .msg-form {
    position: fixed;
    bottom: 0;
    width: 68%;
    padding: 10px;
    background-color: #f8f9fa;
    margin-bottom: 1rem;

    .msg-form-input {
      display: flex !important;
      position: relative;
      flex-wrap: wrap;
      align-items: stretch;
      width: 100%;
      margin-top: 0em;
      unicode-bidi: isolate;
    }
  
    .input-wrapper {
      position: relative;
      width: 100%;
  
      .user-image {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        z-index: 2; 
        pointer-events: none; 
      }
  
      .msg-content {
        width: 100%;
        padding-left: 2.5rem; 
        padding-right: 3rem; 
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        z-index: 1; 
        position: relative;
        display: block;
        height: calc(1.5em + .75rem + 2px);
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: .25rem;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
      }
  
      .submit-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px 10px;
        font-size: 0.9rem;
        z-index: 2; 
      }
    }
  }
  


  .col-md-10 {
    height: 100vh;
    overflow: scroll;
  }

  .msg-content {
    width: 80%;
    margin-right: 5px;
  }

  .message-box {
    width: fit-content;
    max-width: 40%;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #FFFFFF ;
    padding: 10px
  }

  .chat-profile-link {
    text-decoration: none;
  }

  #messages {
    padding-bottom: 64px;
  }

  .chat-profile-div {
    color: #E53761;

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

      .name-email {
        opacity: 0.7;
        
        .email {
          width: 9rem;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }

  .chat-search {
    margin-left: 8px;

    .search-input {
      width: 100%;
    }
  }

  .chats-heading {
    margin-left: 10px;
    margin-top: 8px;
    font-weight: 500;
  }

  .personal-chat-div {
    background-color: #F7F8FB;
    height: 100vh;
    overflow: scroll;
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;

    .personal-chat-profile-heading {
      background-color: #FFFFFF;
    }

    .date-separator {
      display: flex;
      align-items: center;
      margin: 1rem 0;
      text-align: center;
      color: #555;
    }
    
    .date-separator hr {
      flex: 1;
      border: none;
      border-top: 1px solid #ccc;
      margin: 0 0.5rem;
    }
    
    .date-label {
      padding: 0 0.5rem;
      font-size: 0.9rem;
      color: #777;
      background-color: #f8f8f8;
    }
  }
}
.settings-page {
  padding: 40px;

  .edit-page {
    padding: 40px;
  }

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

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

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

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

    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;
}

.ss-main:hover {
  height: max-content !important;
}

.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;
}
