* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: white;
  font-weight: 500;
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
}

body {
  background-color: #0e1a2b;
  color: #ffffff;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 7px;
}

.app {
  display: flex;
  gap: 20px;
  height: 90vh;
}

.transcription-panel {
  background-color: #142237;
  border-radius: 8px;
  padding-bottom: 20px;
  padding-right: 20px;
  padding-left: 20px;
  padding-top: 7px;
  margin-top: 8px;
  flex: 2;
  display: flex;
  flex-direction: column;
  border-style: groove;
  border-color: #2596be;
  border-width: 1px;
  height: 88vh;
}

.transaction_overall_head {
  padding-top: 3%;
}

.transaction_first_tab {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.transaction_first_tab_heading {
  font-size: 30px;
  margin-bottom: 14%;
  font-weight: 800;
}

.transaction_first_tab_heading span{
  font-size: 30px;
  margin-bottom: 14%;
  font-weight: 800;
}

.transaction_first_tab_subheading {
  font-size: 20px;
  margin-bottom: 17%;
  padding-top: 10%;
}

.textAlign {
  text-align: center;
}

.record {
  font-style: italic;
  color: white;
  font-size: 14px;
  margin-top: 2%;
  font-weight: 100;
}

.overallcontrols {
  color: white;
  font-size: 14px;
  margin-top: 3%;
  font-weight: 200;
}

.overallcontrols span{
  color: white;
  font-size: 14px;
  margin-top: 3%;
  font-weight: 200;
}

.name {
  font-size: 18px;
  font-weight: 600;
}

.centerAlign {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2%;
}

.centerAlignBtn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5%;
}

.centerAlignBtnBottom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 7%;
}

.transaction-gif {
  margin-top: 10px;
  width: 45%; 
  height: auto;
}

.header1{
  font-size: 22px;
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
}

.header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1%;
}

.header {
  font-size: 20px;
  color: #2596be;
  font-weight: 500;
}

.control-btns{
  margin-top: 2%;
  margin-bottom: 4%;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.replaystart {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 30px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.controls .time, .controls .speed {
  margin-left: auto;
}

.record-btn {
  color: red;
}

.transcript {
  background-color: #1a2c47;
  border-radius: 8px;
  padding: 10px;
  min-height: 430px;
  border-color: #2596be;
  border-style: groove;
  border-width: 1px;
}

.inner-transcript{
  max-height: 60vh;
  overflow-y: auto;
}

.transcript div {
  margin-bottom: 8px;
}

.time {
  color: #888;
  font-family: "DM Sans", sans-serif;
  margin-right: 5px;
  gap:4px;
}

.doctor {
  color: #4da6ff;
  font-weight: bold;
  margin-right: 5px;
}

.patient {
  color: #ff5f5f;
  font-weight: bold;
  margin-right: 5px;
}

.patient-details {
  background-color: #142237;
  border-radius: 8px;
  margin-top: 8px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 8px;
  flex: 2;
  display: flex;
  flex-direction: column;
  border-color: #2596be;
  border-style: groove;
  border-width: 1px;
  height: 88vh;
  overflow-y: auto;
}

.profile {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 20px;
}

.profile img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.accordion-container {
  width: 100%;
}

.accordion-item {
  margin-bottom: 11px;
}

.accordion-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  background-color: #142237;
  border: none;
  font-size: 17px;
}

.accordion-button img {
  height: 22px;
}

.accordion-button {
  width: 100%;
  padding: 13px;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  border: #2596be;
  border-style: groove;
  border-width: 1px;
  background-color: #142237;
  color: #2596be;
  font-weight: 400;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button.active {
  background-color: #142237;
  color: #2596be;
  font-weight: 600;
  border: #2596be;
  border-style: groove;
  border-width: 1px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.accordion-bottom {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 2%;
}

.copy-btn{
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:4px;
}

.copy-btn:hover {
  background-color: #0056b3;
}

.copy-icon-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px;
  font-size: 14px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:4px;
}

.copy-icon-btn:hover {
  background-color: #0056b3;
}

.copy-icon-btn svg {
  width: 16px;
  height: 16px;
}

.accordion-content {
  display: none;
  background-color: #142237;
  color: white;
  border: #2596be;
  border-top-width: 0px;
  border-style: groove;
  border-width: 1px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.accordion-content p {
  margin: 0;
  color: white;
  font-weight: 400;
  font-size: 15px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab {
  background-color: #1a2c47;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.tab.active {
  background-color: #007bff;
}

.subjective-section {
  background-color: #1a2c47;
  padding: 15px;
  border-radius: 8px;
}

.subjective-section h4 {
  margin-top: 10px;
  margin-bottom: 5px;
}

.subjective-section p {
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.send, .copy {
  background-color: #007bff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.audio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: hsl(222 47% 15%);
}

.waveform {
  position: relative;
  display: flex;
  align-items: center; /* center vertically */
  height: 60px;
  flex-grow: 1;
  gap: 2px;
  background-color: #000;
  overflow: auto;
}
/* White horizontal center line */
.waveform::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-color: white;
  z-index: 0;
}
.bar {
  width: 3px;
  background-color: white;
  border-radius: 2px;
  z-index: 1;
  transform-origin: center center;
}

#playControlButton {
  border: none;
  /* border-radius: 50%; */
  /* width: 25px;
  height: 25px; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

/* #playControlButton:hover svg{
  fill: red;
} */

/* #playControlButton:hover {
  background-color: black;
} */

/* #playControlButton svg:hover {
  width: 18px;
  height: 18px;
  fill: red;
} */

#playControlButton svg {
  width: 18px;
  height: 18px;
  fill: red;
}


#stopControlButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  font-weight: 800;
  font-size: 18px;
  width: 50%;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#stopControlButton:hover svg{
  fill: red
}

#stopControlButton:hover {
  background-color: #0056b3;
}

#stopControlButton svg:hover {
  width: 16px;
  height: 16px;
  border-radius: 10px;
  fill: red
}

#stopControlButton svg {
  width: 16px;
  height: 16px;
  border-radius: 10px;
  fill: red
}

.equalizer {
  display: flex;
  align-items: end;
  height: 24px;
  gap: 2px;
  margin-left: 10px;
}
.equalizer .bar {
  width: 4px;
  height: 8px;
  background-color: #00cc99;
  animation: bounce 1s infinite ease-in-out;
}
.equalizer .bar:nth-child(1) { animation-delay: 0s; }
.equalizer .bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer .bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer .bar:nth-child(4) { animation-delay: 0.3s; }
.equalizer .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

.audio-controls {
  width: 100%;
  height: 8px;
  background-color: white;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #007bff;
  transition: width 1s linear;
}

.time-display {
  font-family: "DM Sans", sans-serif;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.time-display-record {
  font-family: "DM Sans", sans-serif;
  color: white;
  font-size: 24px;
  font-weight: 800;
}

.mic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #6c757d;
}

.playButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px;
  font-size: 14px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  gap:4px;
}

.playButton:hover {
  background-color: #0056b3;
}

.pauseButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px;
  font-size: 14px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  gap:4px;
}

.pauseButton:hover {
  background-color: #0056b3;
}

#micButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 16px;
  font-size: 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  gap:4px;
  margin-top: 8%;
}

#micButton:hover {
  background-color: #0056b3;
}

.backButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  gap:4px;
}

.backButton:hover {
  background-color: #0056b3;
}

#micButton svg {
  width: 24px;
  height: 24px;
  fill: none
}

#copyAllBtn svg {
  width: 16px;
  height: 16px;
  fill: none
}

.tab-content {
  background-color: #1a2c47;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

#replayControlButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#replayControlButton:hover {
  background-color: #0056b3;
}

#replayControlButton svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2;
  fill: none; /* Ensure no fill interferes */
}

.head-img img{
  width: 100px;
}

::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-thumb {
  background: #888 !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #555 !important;
}

* {
  scrollbar-color: unset;
  scrollbar-width: 25px !important;
}

*:hover {
  scrollbar-color: unset;
  scrollbar-width: 25px !important;
}

.textarea-cls {
  width: 100%;
  height: 35vh;
  background-color: #36454F;
  border: none;
  padding: 15px;
}

.textarea-cls:focus {
  outline: none;
  box-shadow: none;
}

.line {
  border: none;
  border-top: 1px solid #2596BE;
  margin: 10px -20px;
}

  .quick-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }


   .button-row {
    gap: 10px; 
    display: flex;
  }

  #ehrBtn, #lhUpload, #genPdf {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #ehrBtn:hover, #lhUpload:hover, #genPdf:hover {
    background-color: #0056b3;
  }

    #myModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }

  .modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px 25px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s ease-out;
    font-family: sans-serif;
  }

  .close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
  }

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

   .app-container {
    display: flex;
    height: 100vh;
  }

  .sidebar {
    background-color: #142237;
    color: white;
    padding: 10px;
    width: 200px;
    transition: width 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .sidebar.collapsed {
    width: 60px;
  }

  .toggle-btn {
    background: none;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .menu-item {
    padding: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
  }

  .menu-item:hover {
    background-color: #0056b3;
    color: white;
    border-radius: 10px;
  }

  .menu-item.close-btn:hover {
    cursor: pointer;
  }

  .sidebar.collapsed .menu-item {
    opacity: 0;
    height: 0;
    padding: 0;
  }

  .main-content {
    flex: 1;
    padding: 20px;
    background: #142237;
  }


  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }