body {
    font-family: Ubuntu, "times new roman", times, roman, serif;
    color: #07507e;
    background: rgba(24, 88, 114, 1);
    background: linear-gradient(347deg, rgba(250, 250, 250, 0.5), rgba(237, 252, 254, 0.4), rgba(237, 252, 254, 0.6), rgba(237, 252, 254, .8));
    background-attachment: fixed;
    background-size: 100% 100%;
    height: 100vh;
    overflow: auto;
    overflow-x: auto;
}

table {
    border-radius: 5px;
}

#headbar {
    Background: rgba(168, 238, 249, 1);
    height: 40px;

}

#headerContent {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(24, 88, 114, 1);
    font-size: 14pt;
    font-weight: bold;
}


/*---------------------------------- Edit Modal Window */


.summary-body {
    height: 100%;
    overflow: auto;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Center modal on screen */
    margin-top: 0;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Set width of modal content */
    max-width: 800px; /* Max width for larger screens */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative; /* Ensure .close is positioned relative to modal content */
    background: #007AFF;
    background: linear-gradient(347deg, rgba(224, 211, 211, 0.5), #E0D3D3, #fff5f7, #F9F3F3);
    background-attachment: fixed;
    background-size: 100% 100%;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    transition: transform 0.6s ease, color 0.6s ease; /* Smooth transition effect */
}

.close:hover,
.close:focus {
    color: #07507e;
    text-decoration: none;
    cursor: pointer;
    transform: translateY(-5px); /* Move 5px upward on hover */
}

.modal-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.modal-column {
    width: calc(50% - 10px); /* Half width with margin */
    margin-bottom: 20px;
}

.sub-columns {
    display: flex;
    justify-content: space-between;
}

.sub-column {
    width: 48%; /* Adjust width as needed */
}



/*---------------------------------------- Main Content Sections*/


.container {
  display: flex;
  min-width: 95%;
  padding: 5px;
  padding-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
}

.left-div {
  width: 78vw; /* Default width */
  margin: 10px;
  margin-top: 0;
  border-radius: 5px;
  transition: width 0.5s ease; /* Smooth transition for width */
}

.left-div.expanded {
  width: 100vw; /* Full expansion when .right-div collapses */
}

.right-div {
  width: 30vw;
  margin: 10px;
  margin-right: 0px;
  margin-top: 0;
  border-radius: 5px;
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0; /* Optional: adjust based on your layout */
  transition: width 0.5s ease; /* Smooth transition for width */
  overflow: hidden; /* Hide content when collapsed */
  min-width: 330px;
}

.right-div.collapsed {
  width: 0;
  padding: 0;
}


.header-left, .header-right {
    padding: 10px;
    font-weight: bold;
    min-height: 64px;
    margin-bottom: 5px;
    background-color: rgba(250, 250, 250, 1);
    border-radius: 5px;
    border: 1px solid rgba(229, 229, 229, 1);
}


.header-right {
    display: flex;
    justify-content: space-around;
    min-width: 264px;
    max-width: 360px;
}

.content-left, .content-right {
    padding: 10px;
    border-radius: 5px;
}

.content-right{
    background-color: rgba(250, 250, 250, 1);
    border: 1px solid rgba(229, 229, 229, 1);
    min-height: 1050px;
    min-width: 264px;
    max-width: 360px;

}

.tab-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button.active {
    background-color: #0DA9CD;
    color: white;
    border-radius: 5px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.chart-container {

    min-height: 140px;
    border-bottom: solid 2px #ededed;
    padding: 5px;
    padding-bottom: 10px;
}
canvas {
    width: 100% !important;
    max-width: 600px;
    height: auto !important;
}

.risk-assessment {
    display: flex;
    flex-direction: column;
}

.rowAssessment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.smoking-options label {
    margin-bottom: 10px;
}
.disorders-options label,
.bone-loss-input label {
    margin-bottom: 10px;
}
.bone-loss-input input {
    width: 100%;
    box-sizing: border-box;
}

#datepicker {
    margin-right: auto;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 5px;
    transition: all 0.3s ease;
    width: 150px;
}

#datepicker:hover {
    border-color: hsl(191, 88%, 43%); /* Increase border intensity */
    transform: translateY(-3px); /* Slightly move up */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}


.header-button {
    background-color: hsl(188, 87%, 82%);
    border: none;
    padding: 5px 10px;
    padding-top: 5px;
    cursor: pointer;
    border-radius: 5px;
    color: rgba(5, 22, 31, 1);
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0px 4px 6px -2px rgba(13, 169, 205, 0.24);
}

.header-button:hover {
    background-color: hsl(191, 88%, 43%);
}

#startMicBtn, #compareExamsBtn, #showTranscriptBtn{
    background-color: hsl(188, 87%, 82%);
    border: none;
    padding: 10px 10px;
    padding-top: 5px;
    height: 36px;
    width: 44px;
    cursor: pointer;
    border-radius: 5px;
    color: rgba(5, 22, 31, 1);
    transition: background-color 0.3s, color 0.3s;
    z-index: 10000;
    box-shadow: 0px 4px 6px -2px rgba(13, 169, 205, 0.24);
}

#startMicBtn:hover, #compareExamsBtn:hover{
    background-color: hsl(191, 88%, 43%);
}

#startMicBtn.recording, #restartTranscription.recording {
    background-color: #E11D48 !important;
}

.leftButtons {
    transform: translateY(5px);
}

.error-asterisk {
    color: red;
    margin-left: 5px;
    font-size: 16px;
}

.checkbox-list,
.dropdown-list {
    margin-top: 10px;
    margin-bottom: 20px;
}
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
}
.checkbox-list label {
    flex: 0 0 50%;
    margin-bottom: 10px;
}
.dropdown-list label {
    display: block;
    margin-bottom: 10px;
}

<!------------------------------------ Perio Chart      -->
.content-left {
    display: grid;
    grid-template-rows: repeat(2, auto); /* Set max number of rows */
    grid-gap: 10px;
    margin-top: 20px;
    transition: max-height 0.5s ease; /* Smooth transition for height */
    overflow: hidden; /* Hide overflow when collapsed */
    max-height: 500px; /* Initial expanded height */
}

.content-left.collapsed {
    max-height: 0; /* Collapse height to 0 when collapsed */
    padding: 0;
}


.content-left.expanded {
    max-height: 500px; /* Set the desired height when expanded */
    padding: 10px; /* Ensure padding is restored when expanded */
}

.row {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping to multiple rows */
    overflow-x: auto; /* Add horizontal scroll if needed */
    margin-bottom: 10px;
    padding: 5px;
    white-space: nowrap; /* Prevent wrapping */
}

.tooth, .toothLabel {
    flex: 1;
    text-align: center;
    padding: 8px;
    padding-top: 0;
/*    margin: 2px;  Adjust spacing between teeth */
    position: relative;
    max-width: 6.25%;
    min-width: 75px;
}

.toothLabel {
    padding-top: 35px;
}

.tooth-number {
    font-weight: bold;
    padding: 5px;

    border-radius: 5px;
    transition: all 0.6s ease;
}

.tooth-content, .tooth-content-label {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
    margin-top: 5px;
    opacity: 1;
    transition: opacity 0.7s ease;

}

.labelEnd{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.perioLabel {
    text-align: right;
}

.hidden {
    display: none;
}


.item {
    display: flex; /* Display items in a row */
    align-items: center; /* Align items vertically in the center */
    justify-content: center; /* Align items horizontally in the center */
    margin-bottom: 10px;
}


/* CSS for tooltip */
.small-input, .furcation-input {
    padding-left: 20px;
    width: 58px;
    border-radius: 5px;
    position: relative; /* Required for tooltip positioning */
    border: none; /* Optional: Add border for better visibility */
}

.small-input::after, .furcation-input::after  {
    content: "Input between 0-30"; /* Tooltip text */
    position: absolute;
    bottom: 125%; /* Position tooltip above the input */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px;
    white-space: nowrap;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.small-input:hover::after, .furcation-input:hover::after {
    opacity: 1;
    visibility: visible;
}

.input-item{
    border-radius: 5px;
}

.square {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
    cursor: pointer;
    background-color: transparent; /* Clear by default */
    border: 1px solid #ccc;
    transition: background-color 0.5s ease;
}

.square {
    border-radius: 0; /* Square */
}

.square {
    transition: border-width 0.3s ease, transform 0.3s ease; /* Smooth transition for border and position */
}

.square:hover {
    border-width: 3px; /* Intensify the border */
    transform: translateY(-3px); /* Move up by 3px */
}

.three-inputs {
    border-radius: 5px;
    width: 33%;
    margin-right: 0px;
    border: none;
    flex: 1; /* Optional: makes inputs take equal space */
    background: rgba(0, 0, 0, 0)
/*    border-bottom: 1px solid #000; */
}

.three-inputs:last-child {
    margin-right: 0;
}

.element-class {
    transition: background-color 0.3s ease;
}

.square.active-yellow {
    background-color: yellow;
}

.square.active-orange {
    background-color: orange;
}

.square.active-red {
    background-color: red;
}

.active-clear {
    background-color: white; /* or whatever the clear state is */
}

.active-yellow {
    background-color: yellow;
}

.active-orange {
    background-color: orange;
}

.active-red {
    background-color: red;
}

.toothDrawingFrontTop img,
.toothDrawingBackTop img,
.toothDrawingFrontBottom img,
.toothDrawingBackBottom img {
    transition: background-color 0.3s ease; /* Adjust the duration and timing function as needed */
}

.toothDrawingFrontTop, .toothDrawingFrontBottom, .toothDrawingBackTop, .toothDrawingBackBottom {
  position: relative;
  display: inline-block;
  border-radius: 8px;
}

.overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none; /* Prevent canvas from capturing pointer events */
}

.toothDrawingFrontTop img {
  display: block;
  border-radius: 8px;
}
.toothDrawingFrontTop canvas {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
}

.toothDrawingFrontBottom img {
  display: block;
  border-radius: 8px;
}
.toothDrawingFrontBottom canvas {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
}

.toothDrawingBackTop img {
  display: block;
  border-radius: 8px;
}
.toothDrawingBackTop canvas {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
}

.toothDrawingBackBottom img {
  display: block;
  border-radius: 8px;
}
.toothDrawingBackBottom canvas {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
}

    .pointer {
        width: 2px;
        height: 2px;
        position: absolute;
        cursor: pointer;
    }
    .pointer-red {
        background-color: red;
    }
    .pointer-blue {
        background-color: blue;
    }

.input-item {
    display: flex;
    gap: 5px; /* Adjust the gap between the inputs if needed */
}


.bg-yellow {
    background: radial-gradient(circle, rgba(255, 233, 89, 0.8) 30%, rgba(255, 233, 89, 0) 70%);
}

.bg-orange {
    background: radial-gradient(circle, rgba(255, 156, 89, 0.8) 30%, rgba(255, 156, 89, 0) 70%);
}

.bg-red {
    background: radial-gradient(circle, rgba(255, 89, 89, 0.8) 30%, rgba(255, 89, 89, 0) 70%);
}

.bg-clear {
    background-color: white; /* or transparent depending on your preference */
}

#settingsModalContent, #directionsModalContent {
    border-radius: 10px;
    background: white;
}


.item.input-item.calTop,
.item.input-item.calBottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.item.input-item.calTop .calNumber1,
.item.input-item.calTop .calNumber2,
.item.input-item.calTop .calNumber3,
.item.input-item.calBottom .calNumber4,
.item.input-item.calBottom .calNumber5,
.item.input-item.calBottom .calNumber6 {
    flex: 1;
    text-align: center;
}

.calTop, .calBottom {
    padding-right: 5px;
    margin-bottom: 0;
}


.toothDrawingFrontTop,
.toothDrawingBackTop,
.toothDrawingFrontBottom,
.toothDrawingBackBottom {
    position: relative;
}

.section-left, .section-left2,
.section-middle, .section-middle2,
.section-right, .section-right2 {
    position: absolute;
    height: 100%;
    top: 0;
}

.section-left, .section-left2 {
    left: 0;
    width: 33%; /* Adjust based on image layout */
}

.section-middle, .section-middle2 {
    left: 33%;
    width: 34%; /* Adjust based on image layout */
}

.section-right, .section-right2 {
    left: 67%;
    width: 33%; /* Adjust based on image layout */
}

.bg-yellow {
    background: radial-gradient(circle, rgba(255, 233, 89, 0.5) 30%, rgba(255, 255, 255, 0.5) 70%);
}

.bg-orange {
    background: radial-gradient(circle, rgba(255, 156, 89, 0.5) 30%, rgba(255, 255, 255, 0.5) 70%);
}

.bg-red {
    background: radial-gradient(circle, rgba(255, 89, 89, 0.5) 30%, rgba(255, 255, 255, 0.5) 70%);
}

.bg-clear {
    background: transparent; /* or any other default background */
}


#chevron {
  transition: transform 0.5s ease; /* Smooth spin transition */
  transform-style: preserve-3d; /* Ensure 3D transform is applied properly */
}

#chevron.rotate {
    transform: rotateY(180deg);  Flip in 3D and adjust position by 5px to prevent it from moving up */

}

#collapse-icon {
    transition: transform 0.5s ease;
}

/* Rotate the icon when content is collapsed */
#collapse-icon.rotate {
    transform: rotate(180deg);
}

.collapsed-btn {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-grow: 0;
  left: 0;
  border-radius: 0 0 10px 0;
  width: 40px;
  height: 30px;
  border: none;
  background-color: #a2d6db;
  transition:
    top 0.5s ease-in-out,
    left 0.5s ease-in-out,
    right 0.5s ease-in-out,
    border-radius 0.5s ease-in-out,
    background-color 0.3s,
    color 0.3s;
  cursor: pointer;
  z-index: 2;
  top: 0;
  color: white;
}

#collapseBtn:hover {
    background-color: #89c1c7;
    color: white;
}

.collapsed-btn:hover {
    background-color: #89c1c7;
    color: white;
}

.collapseDatePicker {
  /* Styles for collapseDatePicker */
  display: flex;
  align-items: center;
  gap: 10px;
}

#toggleBtn{
    margin-right: 5px;
}

/* Collapsed state styles for #toggleBtn */
.toggled-btn {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-grow: 0;
  right: 0;
  border-radius: 0 0 0 10px;
  width: 40px;
  height: 40px;
  border: none;
  background-color: hsl(188, 87%, 82%);
  transition:
    top 0.5s ease-in-out,
    left 0.5s ease-in-out,
    right 0.5s ease-in-out,
    border-radius 0.5s ease-in-out,
    background-color 0.3s,
    color 0.3s;
  transform: translateX(5px);
  cursor: pointer;
  z-index: 2;
  top: 0;
  margin-right: 5px;
}

/* Icon Rotation */
.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

#toggleBtn:hover {
    background-color: hsl(191, 88%, 43%);
}

#toggled-Btn:hover {
    background-color: hsl(191, 88%, 43%);
}

.color-popover {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 10000;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 100px; /* Enough space for 4 items */
    overflow-y: auto; /* Allow scrolling */
    width: 120px; /* Increased width to accommodate labels */
}

.color-option {
    display: flex;
    align-items: center;
    margin: 2px 0;
    cursor: pointer;
}

.color-square {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.color-label {
    margin-left: 10px;
    font-size: 14px;
}

.color-option[data-color="yellow"] .color-square {
    background-color: yellow;
}

.color-option[data-color="orange"] .color-square {
    background-color: orange;
}

.color-option[data-color="red"] .color-square {
    background-color: red;
}

.color-option[data-color="clear"] .color-square {
    background-color: transparent;
    border: 1px solid #ccc;
}

.color-option:hover .color-square {
    border: 1px solid #333;
}

#newExamBtn::before {
  content: "New Exam"; /* Set the content of the tooltip */
  position: absolute; /* Position the tooltip relative to the button */
  background-color: rgba(5, 22, 31, 1); /* Tooltip background color */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Add padding to the tooltip */
  border-radius: 5px; /* Add rounded corners to the tooltip */
  font-size: 12px; /* Adjust the font size of the tooltip */
  opacity: 0; /* Hide the tooltip initially */
  transition: opacity 0.9s ease; /* Add a smooth transition for tooltip visibility */
  transform: translateY(-5px);
  z-index: 10000;
  box-shadow: 0px 2px 4px 0px rgba(51, 65, 85, 0.32);
}

#newExamBtn:hover::before{
  opacity: 1; /* Show the tooltip when hovering over the button */
}

#saveExamBtn::before {
  content: "Save Exam"; /* Set the content of the tooltip */
  position: absolute; /* Position the tooltip relative to the button */
  background-color: rgba(5, 22, 31, 1); /* Tooltip background color */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Add padding to the tooltip */
  border-radius: 5px; /* Add rounded corners to the tooltip */
  font-size: 12px; /* Adjust the font size of the tooltip */
  opacity: 0; /* Hide the tooltip initially */
  transition: opacity 0.9s ease; /* Add a smooth transition for tooltip visibility */
  transform: translateY(-5px);
  z-index: 10000;
  box-shadow: 0px 2px 4px 0px rgba(51, 65, 85, 0.32);
}

#saveExamBtn:hover::before{
  opacity: 1; /* Show the tooltip when hovering over the button */
}

#directionsBtn::before {
  content: "Settings"; /* Set the content of the tooltip */
  position: absolute; /* Position the tooltip relative to the button */
  background-color: rgba(5, 22, 31, 1); /* Tooltip background color */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Add padding to the tooltip */
  border-radius: 5px; /* Add rounded corners to the tooltip */
  font-size: 12px; /* Adjust the font size of the tooltip */
  opacity: 0; /* Hide the tooltip initially */
  transition: opacity 0.9s ease; /* Add a smooth transition for tooltip visibility */
  transform: translateY(-5px);
  z-index: 10000;
  box-shadow: 0px 2px 4px 0px rgba(51, 65, 85, 0.32);
}

#directionsBtn:hover::before{
  opacity: 1; /* Show the tooltip when hovering over the button */
}

#exportBtn::before {
  content: "Save PDF"; /* Set the content of the tooltip */
  position: absolute; /* Position the tooltip relative to the button */
  white-space: nowrap; /* Prevent text wrapping */
  background-color: rgba(5, 22, 31, 1); /* Tooltip background color */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Add padding to the tooltip */
  border-radius: 5px; /* Add rounded corners to the tooltip */
  font-size: 12px; /* Adjust the font size of the tooltip */
  opacity: 0; /* Hide the tooltip initially */
  transition: opacity 0.9s ease; /* Add a smooth transition for tooltip visibility */
  transform: translateY(-5px);
  z-index: 10000;
  box-shadow: 0px 2px 4px 0px rgba(51, 65, 85, 0.32);
}

#exportBtn:hover::before{
  opacity: 1; /* Show the tooltip when hovering over the button */
  transform: translateX(-30px) translateY(-5px);
}

#startMicBtn::before {
  content: "AI Voice"; /* Set the content of the tooltip */
  position: absolute; /* Position the tooltip relative to the button */
  background-color: rgba(5, 22, 31, 1); /* Tooltip background color */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Add padding to the tooltip */
  border-radius: 5px; /* Add rounded corners to the tooltip */
  font-size: 12px; /* Adjust the font size of the tooltip */
  opacity: 0; /* Hide the tooltip initially */
  transition: opacity 0.9s ease; /* Add a smooth transition for tooltip visibility */
  transform: translateY(-5px);
  z-index: 11000;
  box-shadow: 0px 2px 4px 0px rgba(51, 65, 85, 0.32);

}

#startMicBtn:hover::before{
  opacity: 1; /* Show the tooltip when hovering over the button */
}

#compareExamsBtn::before {
  content: "Compare Exams"; /* Set the content of the tooltip */
  position: absolute; /* Position the tooltip relative to the button */
  white-space: nowrap; /* Prevent text wrapping */
  background-color: rgba(5, 22, 31, 1); /* Tooltip background color */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Add padding to the tooltip */
  border-radius: 5px; /* Add rounded corners to the tooltip */
  font-size: 12px; /* Adjust the font size of the tooltip */
  opacity: 0; /* Hide the tooltip initially */
  transition: opacity 0.9s ease; /* Add a smooth transition for tooltip visibility */
  transform: translateY(-5px);
  z-index: 10000;
  box-shadow: 0px 2px 4px 0px rgba(51, 65, 85, 0.32);
}

#compareExamsBtn:hover::before{
  opacity: 1; /* Show the tooltip when hovering over the button */
  transform: translateX(-60px) translateY(-5px);
}

#showTranscriptBtn::before {
  content: "Show Transcript"; /* Set the content of the tooltip */
  position: absolute; /* Position the tooltip relative to the button */
  white-space: nowrap; /* Prevent text wrapping */
  background-color: rgba(5, 22, 31, 1); /* Tooltip background color */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Add padding to the tooltip */
  border-radius: 5px; /* Add rounded corners to the tooltip */
  font-size: 12px; /* Adjust the font size of the tooltip */
  opacity: 0; /* Hide the tooltip initially */
  transition: opacity 0.9s ease; /* Add a smooth transition for tooltip visibility */
  transform: translateY(-5px);
  z-index: 10000;
  box-shadow: 0px 2px 4px 0px rgba(51, 65, 85, 0.32);
}

#showTranscriptBtn:hover::before{
  opacity: 1; /* Show the tooltip when hovering over the button */
  transform: translateX(-60px) translateY(-5px);
}

#newExamBtn, #saveExamBtn, #directionsBtn, #exportBtn {
    height: 36px;
    margin: 5px;
}

/* ------------------------- */
/* Modal Styling */
/* ------------------------- */

/* ------------------------- */
/* Header Section */
/* ------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
}

.exam-dropdown {
  padding: 5px;
  font-size: 14px;
  margin: 0 10px;
  border-color: #D4D4D4
}


/* ------------------------- */
/* Comparison Grid Layout */
/* ------------------------- */
.comparison-grid {
  display: grid;
  grid-template-columns: auto repeat(16, 1fr); /* 1 label column + 16 teeth columns */
  grid-template-rows: auto auto auto; /* 3 rows: Labels, Pocket, Recession */
  gap: 5px;
  align-items: center;
  text-align: center;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* First Column for Labels */
.grid-label {
  font-weight: bold;
  background-color: #ddd;
  padding: 8px;
  border-radius: 5px;
}

/* Teeth Labels Row */
.teeth-labels {
  font-weight: bold;
  background-color: #eee;
  padding: 10px;
  border-radius: 5px;
}

#comparison-cell {
    display: flex;
    justify-content: center;
    gap: 10px; /* Adds space between numbers */
    padding: 5px;
}

.value {
    font-weight: bold;
}

/* ------------------------- */
/* Save PDF Button */
/* ------------------------- */
.footer {
  text-align: center;
  margin-top: 20px;
}

.action-buttons {
    display: flex;
}

#savePdfBtn, #saveSummary {
  font-size: 14px;
  cursor: pointer;
  margin: 0.25rem;
}

/* Increase Modal Width */
#compareModalContent {
    width: 90vw; /* Wider modal */
}

.detailed-comparison-table {
    max-height: 1100px;
}

/* Wider grid layout */
#compare-grid {
    display: grid;
    grid-template-columns: repeat(17, 1fr); /* Adjust number of columns */
    gap: 10px; /* More space */
    width: 100%;
    text-align: center; /* Centers text within each cell */
    justify-items: center; /* Centers content inside grid items */
    align-items: center;
}

/* Labels for Pocket & Recession */
#grid-label {
    font-weight: bold;
    text-align: left;

}

/* Widen Tooth Labels */
#teeth-label {
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

#pocketComparison, #recessionComparison {
    border-bottom: 1px solid #ccc; /* Ensure the border remains */
    padding-bottom: 20px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 1300px;
}

#comparisonWrapper {
    width: 100%; /* Ensures both Pocket & Recession have the same width */
    overflow: hidden; /* Prevents width jumping */
}

.comparison-section {
    width: 100%;
    display: none; /* Hides Recession initially, but width remains */
}

#pocketComparison {
    display: block; /* Show Pocket by default */
}

#compare-grid {
    display: grid;
    grid-template-columns: repeat(17, 1fr); /* 16 teeth + label */
    gap: 10px; /* Increased spacing for clarity */
    text-align: center;
    align-items: center;
    width: 100%;
}

#comparison-cell {
    padding: 10px;
    white-space: nowrap;
    min-width: 60px;
    border: none; /* Remove the border */
    font-size: 14px;
}

#grid-label {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: transparent; /* Remove background */
    border: none; /* Remove border */
    font-size: 14px;
}

#pocketComparison, #recessionComparison {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc; /* Keep only the section separator */
    width: 100%;
}

.arrow {
    font-size: 16px;
    font-weight: bold;
}


.compare-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-top: 15px;
}

.tab-button2 {
    padding: 10px 15px;
    border: none;
    background: hsl(0, 0%, 90%);
    border: 2px solid #D4D4D4;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.tab-button2:hover {
    background: hsl(191, 88%, 43%);
}

.tab-button2.active {
    background: hsl(188, 87%, 82%);
    border: 2px solid hsl(191, 88%, 43%);
}

.tab-button2.active:hover {
    background: hsl(188, 87%, 82%);
}

#upper-teeth-section,
#lower-teeth-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

#comparisonWrapper-upperTeeth,
#comparisonWrapper-lowerTeeth {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    max-width: 1200px; /* Adjust width to control border length */
    margin-left: auto;
    margin-right: auto;
}

.comparison-wrapper {
    display: flex;
    align-items: center;
}

.rotated-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-right: 10px; /* Space between label and grid */
}

.rotated-label {
    writing-mode: vertical-rl; /* Rotates text 90 degrees */
    transform: rotate(180deg); /* Ensures proper alignment */
    text-align: center;
    font-weight: bold;
    padding: 5px;
    width: 20px; /* Keeps label div narrow */
}

#detailedPocketContainer, #detailedRecessionContainer, #detailedAISummaryContainer {
    padding-top: 15px;
}

#detailedAISummaryContainer section div {
    margin-top: 1rem;
}

#detailedAISummaryContainer section div strong {
    font-size: 1.2rem;
}

#detailedAISummaryContainer section div p {
    font-size: 1.0625rem;
    margin-bottom: 0 !important;
    color: hsla(0, 0%, 0%, 1);
}

.troubled-teeth-grid, #troubledView {
    border-radius: 5px;
}

.troubled-teeth-grid td,
.troubled-teeth-grid th {
    min-width: 35px;
}

/* Increase the top border of the 2nd row (Exam 2 – Facial) */
.detailed-comparison-table tbody tr:nth-child(1) td {
  border-top: 2px solid #b9bcc4;
}

/* Increase the top border of the 4th row (Exam 2 – Lingual) */
.detailed-comparison-table tbody tr:nth-child(4) td {
  border-top: 2px solid #b9bcc4;
}


/* Tooltip styling for the popup chart */
.tooltip-popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 1100;
  display: none;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

#troubledView, #detailedView {
    padding-top: 10px;
}

.detailed-comparison-table th,
.detailed-comparison-table td {
  border-left: none !important;
  border-right: none !important;
}

#toggleViewBtn {
    height: 41px;
}

/* When in troubled view, stack child divs vertically */
#compareModalContent.troubled-view {
  display: block;
}

/* When in detailed view, use flex layout (or any desired layout) */
#compareModalContent.detailed-view {
  display: flex;
  flex-direction: column;
}

#toggleViewBtn      {
    transform: translateY(2px);
}

#viewHeader {
    padding-top: 8px;
}

.rotated-labels-container {
    max-height: 300px;
    padding-top: 40px;
}

.header {
  display: flex;
  justify-content: flex-start; /* Align items to the left */
  align-items: center;
}

.invalidValue {
    outline-style: solid;
    outline-color: red;
    outline-width: 1px;
}
.changedValue {
    outline-style: solid;
    outline-color: #0DA9CD;
    outline-width: 1px;
}

select:focus {
    outline-style: solid;
    outline-color: #0DA9CD;
    outline-width: 1px;
}

/* Loading Spinner Styles */
.spinner-box {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 30%;
    position: fixed;
    bottom: 40px;
    right: 30px;
    align-content: center;
    justify-items: center;

    /* Fade-in and Fade-out Effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 2000;
}

.ai-spinner-box {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 30%;
    align-content: center;
    justify-items: center;
    z-index: 2000;
}

.loading-spinner {
    width: 130px;
    height: 130px;
    border: 6px solid #0DA9CD; /* Spinning part */
    border-top: 6px solid #FAFAFA;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 10px;
}

.ai-spinner {
    width: 3rem;
    height: 3rem;
    border: 8px solid #0DA9CD;
    border-top: 8px solid #FAFAFA;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 10px;
}

/* Spinning Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mic-inputs {
    display: flex;
    height: 36px;
    width: 125px;
    margin-top: 8px;
    justify-content: start;
}

.mic-level {
    width: calc(10% - 8px);
    height: 33px;
    margin-left: 2px;
    margin-right: 2px;
    background-color: #E5E5E5;
    display: inline-block;
}

input[type=checkbox] {
    width: 15px;
    height: 15px;
}

input[type=radio] {
    width: 15px;
    height: 15px;
}

.divTeeth {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    whitespace: nowrap;
}

#detailed-legend {
    font-size: 1.2rem;
}

.disclaimer {
    text-align: center;
    font-size: .8rem;
    color: hsl(210, 2%, 47%);
    margin-top: .25rem;
}

