/* ---------------------------------------------------------------------
                           HTML / CSS
 --------------------------------------------------------------------- */

/* Your custom styles */

@font-face {
    font-family: 'Sohne-Leicht';
    src: url('fonts/Sohne/Sohne-Leicht.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sohne-Kraftig';
    src: url('fonts/Sohne/Sohne-Kraftig.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RightGrotesk-CompactBlack';
    src: url('fonts/RightGrotesk/RightGrotesk-CompactBlack.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SohneMono-Leicht';
    src: url('fonts/Sohne/SohneMono-Leicht.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


/* SC - Jan 16 2025 (Ardea) */
@font-face {
    font-family: 'MonumentGrotesk-Regular';
    src: url('fonts/ABCMonumentGrotesk/ABCMonumentGrotesk-Regular-Trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}



/* SC - Jan 16 2025 (Ardea) */
@font-face {
    font-family: 'MonumentGrotesk-Bold';
    src: url('fonts/ABCMonumentGrotesk/ABCMonumentGrotesk-Bold-Trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


strong {

    /* font-family: 'Sohne-Kraftig', sans-serif;  */

    /* SC - Jan 16 2025  */
    font-family: 'MonumentGrotesk-Bold', sans-serif; 
        
    font-size: 17px; /* your desired font size here */; /* Example: 16px */
    /*line-height: calc(1em - 4px); /* Leading = Font size - 4px */
    /*letter-spacing: -0.02em; /* Tracking: -20 (in CSS, this is usually represented in em units) */

    /* SC - Feb 13 2025 */
    font-weight: normal !important;

}


h1, h2, h3, h4, h5, h6 {
    /* font-family: 'Sohne-Kraftig', sans-serif; */

    /* SC - Jan 16 2025  */
    font-family: 'MonumentGrotesk-Bold', sans-serif; 
    
    font-size: 17px!important; /* No space before !important */
    
    /* SC - Feb 13 2025 */
    font-weight: normal !important;

}


.custom-header {

    /* font-family: 'Sohne-Kraftig', sans-serif; */

     /* SC - Jan 16 2025  */
    font-family: 'MonumentGrotesk-Bold', sans-serif; 
    
    font-size: 50px!important; /* No space before !important */
    /* line-height: calc(1em - 4px); 
    letter-spacing: -0.02em;  */

    /* SC - Jan 16 2025 */
    line-height: calc(1em + 0.048em); /* Leading = Font size + 2 pt */
    letter-spacing: -0.019em; /* Tracking: -19 (in CSS, this is usually represented in em units) */
    
    /* SC - Feb 13 2025 */
    font-weight: normal !important;
}


/* h4 {
    font-family: 'SohneMono-Leicht', sans-serif;
    font-size: 17px!important; 
} */



body, html {
    /* Other styles remain the same */
    margin: 0;
    padding: 0;
    /* Set the minimum height to be at least the full viewport height */
    min-height: 100vh;
    /* Use background image */
    background-image: url('/static/images/web_gradient_7680x4320px.png');
    /* Ensure the image covers the entire element and is centered */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Changed from 'fixed' to 'scroll' */
    background-attachment: fixed; 
    overflow: hidden;
    
    /* font-family: 'Sohne-Leicht', sans-serif; */

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;

    font-size: 17px; /* This is already defined in your existing CSS for html */
   /* line-height: calc(1em + 1px); /* Leading = Font size + 1px */
    /*letter-spacing: 0; /* Tracking = 0 */
}

/* Ensure HTML element covers the whole page too */
html {
    height: -webkit-fill-available;
}

/* Extend content behind the notch/Dynamic Island */
@supports(padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Use a fallback for browsers that do not support env() */
@supports not (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: constant(safe-area-inset-top);
    }
}

.chat-message-left, .chat-message-right {
    /* font-family: 'Sohne-Leicht', sans-serif; */

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;

    font-size: 17;
   /* line-height: calc(1em + 1px); /* Leading = Font size + 1px */
  /*  letter-spacing: 0; /* Tracking = 0 */

    background-color: transparent;
    padding: 10px;
    color: #000000;  /* Set font color to white */
}


/* Vision: */
.chat-message-left {
    text-align: left;
}

/* You / User */
.chat-message-right {
    text-align: left;
}


/* Adjustments for Bootstrap */
.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    /* margin-bottom: 10px; /* Adjust as needed for spacing between chat UI and forms */
    border: none; /* Existing rule */
    /* background-color: #000; */
    background-color: transparent;}



/* Additional responsive styles -- for smartphones and tablets  */
@media (max-width: 768px) {
    body {

        /* font-family: 'Sohne-Leicht', sans-serif; */

        /* SC - Jan 16 2025 */
        font-family: 'MonumentGrotesk-Regular', sans-serif;

        font-size: 17px; 
      /*  line-height: calc(1em + 1px); /* Leading = Font size + 1px */
       /* letter-spacing: 0; /* Tracking = 0 */
    }
}

#question, #nightscoutURL {

    /* font-family: 'Sohne-Leicht', sans-serif; */

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;

    font-size: 17px; 
  /*  line-height: calc(1em + 1px); /* Leading = Font size + 1px */
   /* letter-spacing: 0; /* Tracking = 0 */

    width: calc(100% -5 px); /* Adjust width to be full width minus 5px padding */
    background-color: #ffffff;
    border: none; /* Remove the border */
    /*border-radius: 15px; /* This value is arbitrary, adjust as needed for rounded corners */

    
    border-radius: 15px 0 0 15px; /* SC - Oct 23 2024 - Same border-radius as the left side of the submit button */

    /* Keep other existing styles, and add below properties if not already present */
    box-sizing: border-box; /* Include padding in the width calculation */
    padding-left: 15px; /* Example padding on the left, adjust as needed */
    padding-top: 10px; /* Example padding on the top, adjust as needed */
    padding-bottom: 10px; /* Example padding on the bottom, adjust as needed */
    padding-right: 25px; /* Set padding from the right edge */
    padding-right: 50px; /* Make room for the button - so text doesn't overlap it */

}

input[type="text"] {
    width: 100%; /* Ensure the textbox takes up the full width of its container */
    max-width: 100%; /* Prevent the textbox from expanding beyond its container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    word-wrap: break-word; /* Ensure long words or URLs wrap to the next line */
    white-space: pre-wrap; /* Allow text to wrap to the next line */
    border-color: #aaa; /* Assuming the text color is grey (#aaa) */
}


.flex-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flex-item {
    flex: 1;
}

.button-container {
    margin-left: 10px;  /* optional: for some spacing between the textbox and the button */
    background-color: #000;
}


/* #forms-container {
    background-color: transparent;
    flex-shrink: 0;
    padding-bottom: 10px;
} */

.main-container {
    position: fixed;
    /* top: env(safe-area-inset-top, 15px);  */
    top: env(safe-area-inset-top);
    left: env(safe-area-inset-left);
    right: env(safe-area-inset-right);
    bottom: env(safe-area-inset-bottom);
    display: flex;
    flex-direction: column;
    /* height: 100vh;   */
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));  
    background-color: transparent;
    overflow: hidden; 

    
}

/* SC - Feb 6 2025 - fix overlap with side panel button when the width is small */
@media (max-width: 600px) {
    .main-container {
        left: 50px;                /* Shift the container to start to the right */
        width: calc(100% - 50px);    /* Reduce its width accordingly */
    }
}

#conversation {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px; 
    background-color: transparent;
    border: none;
    max-height: calc(100vh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    /* max-height: calc(100vh - 100px); */
    /* margin-top: env(safe-area-inset-top, 30px); */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
    /* padding-bottom: 100px;  */
}

/* SC - Nov 15 2024 - remove the extra line after the You (Speech-to-Text) audio recording output */
#conversation p {
    margin: 0;
    padding: 0;
}

input, button {
    border-color: #fff; /* If you want white borders */
    background-color: transparent;
}

/*Ask a question & Nightscout URL text*/
label {
    color: #ffffff; /* or simply color: white; */
}

.container {
    /* background-color: black !important;*/
    background-color: transparent;
    
    /* SC - Nov 15 2024 */
    width: 100%; /* Ensure it spans the full width */
    max-width: 100%; /* Prevent any width constraints */
    background-color: transparent; /* Ensure no background color */
    display: flex; /* Enables flexbox if vertical alignment is needed */
    justify-content: center; /* Centers content horizontally (optional) */
    align-items: center; /* Centers content vertically (optional) */

}

.card {
    /* background-color: black !important;*/
    background-color: transparent;

}

#questionForm .form-control {
    border-radius: 15px 0 0 15px; /* Rounded corners on the left side, square on the right */
    color: #ffffff;
    border: none;
}

#questionForm .input-group-append .btn.btn-primary.circle-button {
    background-color: #ffffff;
    border: none !important;
    color:#000 !important;
    border-radius: 0 15px 15px 0; /* Square on the left side, rounded corners on the right */
    height: 40px; /* SC - Oct 23 2024 - Set the button height to match the textbox */ 

    /* SC - Nov 15 2024 - Flexbox for centering */
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers the buttons horizontally */
    align-items: center; /* Centers the buttons vertically */
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */

}



#questionForm .input-group {
    flex-wrap: nowrap;

}


.circle-button {
    /* background-color: #DFDFDF;*/
    /*background-color: transparent;*/
    background-color: #ffffff;
    border: none;
    /*color: rgb(72, 72, 72)*/
    color:#000;
    border-radius: 15px;
}

.settings-btn {
    background-color: transparent;
    border: none;
    color: black;
}

/* SC - Mar 15 2025 - settings button text */
.settings-btn-text {
    margin-top: -5px !important; 
    font-family: 'MonumentGrotesk-Regular';
    font-size: 13px;
    color: #000;
}

/* SC - Jan 28 2025 - add grey hover effect */
.settings-btn:hover {
    opacity: 0.7;
}

/* SC - Feb 6 2025 - remove the blue outline when pressed */
.btn.settings-btn:focus,
.btn.settings-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

#settingsModal .modal-title {

    font-size: 20px;

    /* font-family: 'Sohne-Kraftig'; */
    /* line-height: calc(1em - 4px); 
    letter-spacing: -0.02em;  */
    
    /* SC - Jan 16 2025  */
    font-family: 'MonumentGrotesk-Bold', sans-serif; 
    line-height: calc(1em + 0.048em); /* Leading = Font size + 2 pt */
    letter-spacing: -0.019em; /* Tracking: -19 (in CSS, this is usually represented in em units) */        
    
}

#settingsModal .modal-content {
    background-color: rgb(225, 241, 229);
    /* font-family: 'Sohne-Leicht', sans-serif; */

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;
    
    font-size: 17px; 
   /* line-height: calc(1em + 1px); /* Leading = Font size + 1px */
   /* letter-spacing: 0; /* Tracking = 0 */
}




/*for email and password labels in login.html; also the font color for the text labels in settings modal*/
.label-color, label {
    color: black; /* Or any color that contrasts well with your background */
}


/* Set the background color of the input field with reduced opacity */
input#question {
    background-color: rgba(255, 255, 255, 0.35); /* Adjust the RGB values to match your desired color */
    border: none; /* Optional: removes the border */
    color: black; /* Text color */
}

/* Placeholder color with full opacity */
input#question::placeholder {
    color: grey;
    opacity: 1; /* Full opacity for placeholder */
}

/* Styles for input text */
input#question:not(:placeholder-shown) {
    color: black;
    opacity: 1; /* Full opacity for input text */
}

/* Changing the text color when the user types or the input is focused */
input#question:focus, input#question:not(:placeholder-shown) {
    color: black;
}

/* Thinking animation */
@keyframes pulse {
    0% {
        transform: scale(0.88);
        opacity: 0.7;
    }
    70% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.88);
        opacity: 0.7;
    }
}

/* Thinking dot with glow effect */

.thinking-dot {
    height: 15px;
    width: 15px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
    margin-right: 15px;
}


ol {
    list-style: none; /* Hide default list markers */
    counter-reset: list-counter; /* Reset the counter */
    /* font-family: 'Sohne-Leicht', sans-serif; 

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;

    font-size: 17px;
    padding-left: 20px; /* Add padding to the left of the list to accommodate the number */
}


ol li {
    display: block; /* Change from flex to block */
    counter-increment: list-counter; /* Increment the counter for each list item */
    margin-bottom: 10px; /* Add some space between list items */
    position: relative; /* Enable positioning for ::before */
    padding-left: 30px; /* Add left padding to create space for the numbers */
}

ol li:before {
    content: counter(list-counter) ". "; /* Display the counter value followed by a period */
        
    /* font-family: 'Sohne-Leicht', sans-serif;  */

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;

    margin-right: 10px; /* Add some space between the number and the list content */
    position: absolute; /* Position the number absolutely */
    top: 0; /* Align the top of the number with the top of the list item */
    left: 0; /* Align the left of the number with the left of the list item */
}

/* Style the link */
.reset-link {
    color: black; /* Change the link color to black */
    text-decoration: none; /* Remove underline from the link */
   
    /* font-weight: bold;  */
    /* font-family: 'Sohne-Kraftig', sans-serif;  */

    /* SC - Jan 16 2025  */
    font-family: 'MonumentGrotesk-Bold', sans-serif; 
    
}

.reset-link:hover {
    text-decoration: underline; 
    color: black; 
}

/* SC - July 21 2024 */

.safe-area-padding {
    /*padding-top: calc(env(safe-area-inset-top, 0px)); /* 30px added to safe area */
    padding-top: env(safe-area-inset-top); 
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

.settings-button-container {
    position: fixed;
   /* top: calc(env(safe-area-inset-top, 0px) + 30); */
    top: calc(env(safe-area-inset-top, 0px) + 30);
    right: 15px;
    z-index: 1000;
}


/* Safe area bottom padding class */
.safe-area-bottom {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5px);
}



#forms-container {
    background-color: transparent;
    flex-shrink: 0;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5px)!important;
    position: fixed; /* Change from absolute to fixed */
    bottom: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */

     /* SC - Nov 15 2024 - Flexbox for centering */
     display: flex; /* Enables flexbox */
     justify-content: center; /* Centers the buttons horizontally */
     align-items: center; /* Centers the buttons vertically */
     flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */

}


/* SC - Nov 15 2024 - center the 2 buttons for transcription */
.input-group-append {
    display: flex; /* Enable flexbox for layout */
    justify-content: center; /* Center the buttons horizontally */
    align-items: center; /* Center the buttons vertically */
    gap: 10px; /* Space between the buttons */

    width: 100%; /* Make the container span the full width */
    /* flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


/* Apply additional padding for the modal specifically */
#settingsModal .modal-content {
    padding-top: calc(env(safe-area-inset-top) + 15px); 
}

/* SC - Oct 23 2024 - new work from here onwards */
/* #audioUploadButton, #microphoneButton, #downloadButton{ */

/* SC - Feb 5 2025 - add styling for refresh history button */
#audioUploadButton, #microphoneButton, #downloadButton, #refreshHistoryButton{    
    background-color: #ffffff; /* Same white background as the submit button */
    border: none; /* No border, same as submit button */
    color: #000; /* Black icon color, same as submit button */
    border-radius: 15px; /* Fully rounded corners */
    opacity: 0.6; /* Same opacity as the submit button */

    /* padding: 10px; Adjust padding as necessary */
    
    margin-left: 10px; /* Adds a gap between the submit button and the scribe button */
    height: 40px; /* SC - Oct 23 2024 - Set the button height to match the textbox */
    width: 40px; /* Make the button square */
    
    /* display: flex; Use flexbox for centering */
   
    justify-content: center; /* Horizontally center the icon */
    align-items: center; /* Vertically center the icon */
    transition: opacity 0.2s ease; /* Smooth hover transition */

    /* SC - Nov 15 2024 */
    display: inline-flex; /* SC - Nov 15 2024 - Use flexbox for icon and text alignment */
    padding: 10px 15px; /* SC - Nov 15 2024 - Adjust padding to include space for text */
    gap: 8px; /* Space between the icon and text */
    white-space: nowrap; /* Prevent text wrapping */
    
    /* font-family: 'Sohne-Kraftig', sans-serif;  */
    /* font-size: 16px;  */

     /* SC - Jan 16 2025  */
    font-family: 'MonumentGrotesk-Bold', sans-serif;     
    font-size: 17px;
    
    min-width: 200px; /* Ensure buttons have enough width */

}

/* SC - Nov 27 2024 - style the download button that's shown in the chat output */
 #downloadButtonInOutput{
    background-color: transparent; /* Same white background as the submit button */
    border: 1.5px solid #000; 
    color: #000; /* Black icon color, same as submit button */
    border-radius: 15px; /* Fully rounded corners */
    opacity: 1.0; /* Same opacity as the submit button */

    /* padding: 10px; Adjust padding as necessary */
    
    /* margin-left: 10px;  */
    height: 40px; /* SC - Oct 23 2024 - Set the button height to match the textbox */
    width: 40px; /* Make the button square */
    margin-bottom: 10px; 
    
    /* display: flex; Use flexbox for centering */
   
    justify-content: center; /* Horizontally center the icon */
    align-items: center; /* Vertically center the icon */
    transition: opacity 0.2s ease; /* Smooth hover transition */

    /* SC - Nov 15 2024 */
    display: inline-flex; /* SC - Nov 15 2024 - Use flexbox for icon and text alignment */
    padding: 10px 15px; /* SC - Nov 15 2024 - Adjust padding to include space for text */
    gap: 8px; /* Space between the icon and text */
    white-space: nowrap; /* Prevent text wrapping */
    /* font-family: 'Sohne-Kraftig', sans-serif;  */

     /* SC - Jan 16 2025  */
     font-family: 'MonumentGrotesk-Bold', sans-serif;     

    font-size: 16px; /* Adjust font size */
    min-width: 200px; /* Ensure buttons have enough width */

}


#downloadButton {
    background-color: #ffffff; /* Same white background as the submit button */
    border: none; /* No border, same as submit button */
    color: #000; /* Black icon color, same as submit button */
    border-radius: 15px; /* Fully rounded corners */
    opacity: 0.75; /* Same opacity as the submit button */

    /* padding: 10px; Adjust padding as necessary */
    
    margin-left: 10px; /* Adds a gap between the submit button and the scribe button */
    height: 40px; /* SC - Oct 23 2024 - Set the button height to match the textbox */
    width: 40px; /* Make the button square */

    /* display: flex; Use flexbox for centering */
   
    justify-content: center; /* Horizontally center the icon */
    align-items: center; /* Vertically center the icon */
    transition: opacity 0.2s ease; /* Smooth hover transition */

    /* SC - Nov 15 2024 */
    display: inline-flex; /* SC - Nov 15 2024 - Use flexbox for icon and text alignment */
    padding: 10px 15px; /* SC - Nov 15 2024 - Adjust padding to include space for text */
    gap: 8px; /* Space between the icon and text */
    white-space: nowrap; /* Prevent text wrapping */

    /* font-family: 'Sohne-Kraftig', sans-serif;  */

    /* SC - Jan 16 2025  */
    font-family: 'MonumentGrotesk-Bold', sans-serif;     

    font-size: 16px; /* Adjust font size */
    min-width: 200px; /* Ensure buttons have enough width */

}


/* #audioUploadButton:hover, #microphoneButton:hover, #downloadButton:hover, #downloadButtonInOutput:hover  { */

/* SC - Feb 5 2025 - add stying for refresh history button */
#audioUploadButton:hover, #microphoneButton:hover, #downloadButton:hover, #downloadButtonInOutput:hover, #refreshHistoryButton:hover {
    opacity: 1; /* Full opacity on hover */
}


/* SC - Feb 6 2025 - remove the grey box outline when the button is pressed */
#audioUploadButton:focus, #microphoneButton:focus, #downloadButton:focus, #downloadButtonInOutput:focus, #refreshHistoryButton:focus {
    outline: none;
    box-shadow: none;
}


/* #audioUploadButton i, #microphoneButton i, #downloadButton i, #downloadButtonInOutput i {
    font-size: 22px;
} */

#downloadButtonInOutput:hover  {
    background-color: #ffffff; /* Same white background as the submit button */
    border: none; /* No border, same as submit button */
    color: #000; /* Black icon color, same as submit button */
}

/* SC - Nov 27 2024 */
#downloadButtonInOutput i {
    font-size: 17px; /* Adjust the size of the icon */
}


/* Recording Modal overlay styling - SC - Oct 23 2024 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Ensure the overlay appears above other elements */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); /* Safe-area insets */
}

/* Reuse modal-content styling from settingsModal for the recording modal */
/* SC - Oct 25 2024 - Fixed height for modal content */
.modal-overlay .modal-content {
    background-color: rgb(225, 241, 229); /* Same background as settingsModal */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%; /* Responsive width */

    height: 550px; /* Fixed height to maintain space for waveform visualization */
    max-height: 90vh; /* Ensure modal height is responsive */
}

.modal {
        z-index: 1050; /* Correct value */
      
}

.modal-backdrop {
    z-index: 1040; /* Correct value */
    
    /* font-family: 'Sohne-Leicht', sans-serif;  */

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;

    color: black;
    font-size: 17px;
    position: relative; /* Ensure the close button is positioned relative to the modal content */
    display: flex;
    flex-direction: column; /* Ensure content stacks properly */
    align-items: center; /* Center all content horizontally */
    
    position: relative; /* Necessary for positioning absolute children */
    
    

}

/* Button styles in the recording modal */
.modal-overlay .modal-content button {
    margin: 10px 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    /* font-family: 'Sohne-Leicht', sans-serif; */

    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;

    font-size: 17px;
    transition: background-color 0.2s ease;
}

.modal-overlay .modal-content button:hover {
    background-color: #333;
}

.modal-content h3 {
    margin-bottom: 30px; /* Adjust this value to add space between the title and the record button */
}

/* SC - Oct 23 2024 - Close button styling for the new recording modal */
#recordingModal .close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px; /* Small margin to keep it closer to the edges */
    font-size: 24px;
    font-weight: bold;
    color: black; /* Color of the "X" */
    background: none; /* Ensure the background is fully transparent */
    border: none; /* Remove any border */
    cursor: pointer;
    outline: none; /* Remove any outline */
}

#recordingModal .close:hover {
    color: #555; /* Change color on hover */
    background: none; /* Ensure no background on hover */
    outline: none; /* Remove any hover outline */
}



/* Wrapper to center the record button */
.record-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%; 
    height: auto; 
    padding-top: 9px; /* SC - Move the Red Record Button Vertically */
    margin-top: 0; /* Reset margin-top if necessary */
}


/* Hover effect for the record button */
.record-button:hover {
    background-color: rgb(214, 0, 28); /* Custom red color */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4); /* More pronounced shadow on hover */
}

/* SC - Oct 25 2024 -- shown when the recording is in progress */
/* .recording-active {
    background-color: black !important; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
} */


/* Style for the red record button with white outline */
.record-button {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    background-color: rgb(214, 0, 28); /* Custom red color */
    border-radius: 50%; /* Make it circular */
    border: 3px solid white; /* White outline like Apple's Voice Memo */
    cursor: pointer;
    display: inline-block !important; /* SC -Oct 28 2024 - set to important */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Optional shadow for effect */
}


/* SC - Oct 25 2024 -- shown when the recording is in progress */
/* Inner square/stop button, only visible when recording */
/* Change the background to transparent when recording */
.record-button.recording-active {
    background-color: transparent; /* Make circle transparent when recording */

}

/* Inner square only appears when recording */
.record-button.recording-active::before {
    content: "";
    width: 20px; /* Size for the inner square */
    height: 20px;
    background-color: rgb(214, 0, 28); /* Red color for the inner square */
    border-radius: 5px; /* Rounded corners for the inner square */
    position: absolute;
    /* top: 81.25%; Center vertically */

    /* SC - Jan 16 2025 */
    top: 83.5%; /* Center vertically */

    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Position exactly at the center */
}

/* Ensure the waveform canvas doesn’t expand modal height */
.modal-overlay canvas {
    max-height: 100px; /* Adjust height for waveform */
    width: 100%;
}

/* --------------------------- */

/* SC - Oct 28 2024 work onwards - */
#recordingTitle {
    margin-top: 55px;
}

/* for the waveform visualization */
#waveformCanvas {
    margin-top: 75px; /* Moves the waveform down by 5 pixels */
    width: 200px; /* Set to your preferred width */
    margin-left: auto; /* SC - Jan 9 2025 */
    margin-right: auto; /* SC - Jan 9 2025 */
    display: block;   /* SC - Jan 9 2025 - Ensures the element is treated like a block for centering */
}

/* for the "Press the Button Below to Start Recording" message */
#waveformMessage {
    width: 90%; /* Set relative width within the modal */
    max-width: 350px; /* Cap the width to ensure it stays within the modal */
    /* font-family: 'Sohne-Leicht', sans-serif; */
    /* font-size: 16px; */
    
    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;
    font-size: 17px; 
    
    background-color: rgb(225, 241, 229); /* Matches settingsModal background */
    color: black; /* Subtle font color */
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 330px; /* SC - Oct 28 2024 - adjust the vertical positioning */
    text-align: center;
    z-index: 2; /* Ensure it overlays the canvas */
    box-sizing: border-box; /* Ensures width calculation includes padding */
    padding: 0; /* Remove padding */
    margin: 0 auto; /* Center align */
}

.microphone-icon {
    position: relative;
    top: 45px; /* Move down by 10px; use a negative value to move up */
}

/* SC - Nov 16 2024 */
#recordingCompleteSection {
    margin-top: 8px; 
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 10px;
}

/* SC - Nov 16 2024 */
#recordingTitle {
    font-size: 40px; 
    font-family: 'MonumentGrotesk-Regular', sans-serif;
    text-align: center;
    line-height: calc(1em + 0.048em); /* Leading = Font size + 2 pt */
    letter-spacing: -0.019em; /* Tracking: -19 (in CSS, this is usually represented in em units) */
    
}

/* SC - Nov 16 2024 */
#recordingTimer {
    font-size: 17px; 
    font-family: 'MonumentGrotesk-Regular', sans-serif;
    text-align: center;    
}



/* ----- HISTORY SECTION ----- */

/* SC - Mar 15 2025 -- new wrapper to hold the history button icon and the "All Notes" text */
.history-btn-wrapper {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* Stacks the button and text vertically */
    align-items: center;
}

.history-btn-text {
    margin-top: -5px !important; 
    font-family: 'MonumentGrotesk-Regular';
    font-size: 13px;
    color: #000; 
}

/* SC - Jan 28 2025 - History Button - Fixed to the Left */

.history-btn {
    /* position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000; */
    background: transparent;
    border: none;
    cursor: pointer; /* Ensures it looks clickable */
    padding: 10px; /* Adds space for clicking */
    display: flex; /* Ensures the image is aligned properly */
    align-items: center;
    justify-content: center;
}

/* Adjust image size */
.history-btn img {
    width: 28px;  /* Adjust as needed */
    height: 28px; /* Adjust as needed */
    pointer-events: none; /* Prevents issues with clicking */
}

/* Optional: Add hover effect */
.history-btn:hover {
    opacity: 0.7;
}
/* 
/* Side Panel - Initially Hidden */
.history-panel {
    position: fixed;
    top: 0;
    left: -800px; /* Initially hidden */
    width: 800px;
    height: 100%;

    background-color: rgb(225, 241, 229);
    
    /* Other styles */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 1050;
    padding: 15px;

    font-family: 'MonumentGrotesk-Regular', sans-serif; /* Apply main font */
    color: black; /* Ensure text is visible on background */
}

/* Show Panel when Active */
.history-panel.active {
    left: 0; 
}

/* Header inside the Panel */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;

    font-family: 'MonumentGrotesk-Bold', sans-serif;
    font-size: 18px; /* Adjust for readability */
}

/* Close Button for Side Panel */
.close-btn {
    background: none;
    border: none;
    /* font-size: 20px; */
    cursor: pointer;
    /* color: #888; */

    font-size: 28px;
    outline: none; /* SC - Feb 6 2025 - Remove any outline */
    color: black; /* SC - Feb 6 2025 - Change color to black */
    font-family: 'MonumentGrotesk-Regular', sans-serif; /* SC - Feb 6 2025 - Change color to black */

}

.close-btn:hover {
    /* color: #333; */
    /* SC - Feb 6 2025 */
    opacity: 0.7;
}

/* SC - Feb 6 2023 - remove the blue box outline after the close button is pressed */
.close-btn:focus {
    outline: none;
    box-shadow: none;
}

/* List of Transcriptions */
.history-content ul {
    list-style: none;
    padding: 0;
}

.history-content li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.history-content li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .history-panel {
        width: 100%; /* Full screen on smaller devices */
        left: -100%; /* Hidden */
    }
}

/* SC - Jan 29 2025 - refresh button for the transcription history refresh */
.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.0em;
    color: black; 
   
    transition: color 0.2s ease-in-out;
    outline: none;
}

.refresh-btn:hover {
    opacity: 0.7;
}

.refresh-btn:focus {
    outline: none; 
    box-shadow: none; 
}

/* SC - Jan 30 2025 - Styling for "Show More/Less" button */
.show-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;  /* Push elements apart */
    width: 100%;  /* Ensure it takes full width */
    padding: 5px 0;
    color: black;
    outline: none;
    box-shadow: none; /* Ensure no shadow appears */

}

/* Also remove focus outline on keyboard navigation */
.show-more-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.show-more-btn:hover {
    opacity: 0.7;
}

/* Ensure the ellipsis stays on the left */
.show-more-btn .ellipsis {
    flex-grow: 1;   /* Takes up available space, pushing icon to the right */
    text-align: left;
}

/* Move chevron to the right */
.show-more-btn i {
    flex-shrink: 0;  /* Prevent icon from shrinking */
    margin-left: auto; /* Push icon to the far right */
}


/* SC - Jan 30 2025 - Increase spacing between history entries */
#historyList li {
    padding: 15px 0;  /* Increase spacing within each entry */
    margin-bottom: 15px;  /* Adds more separation between entries */
    border-bottom: 2px solid #ddd; /* Slightly thicker separator */
}

/* If you want even more separation, use margin-top too */
#historyList li:first-child {
    margin-top: 10px;
}

/* SC - Feb 5 2025 - remove the blue outline after bootstrap buttons are pressed (like logout and save in setttings) */
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* SC - Feb 6 2025 - For Firefox: remove the inner focus border */
.btn::-moz-focus-inner {
    border: 0;
}


/* SC - Feb 6 2025 */
.modal-header {
    display: flex;
    align-items: center;         /* Vertically center items */
    justify-content: space-between; /* Space out the title and button */
    /* padding: 10rem;               Adjust if needed */
}

.modal-header .modal-title {
    margin: 0;                   /* Remove default margin */
    line-height: 0.8;              /* Adjust line-height if necessary */
}

.modal-header .close-btn {
    margin: 0;                   /* Remove any default margin */
    padding: 0rem;            /* Adjust padding if needed */
    line-height: 0.5;              /* Ensure proper vertical alignment */
}

/* SC - Feb 14 2025 - For the "Please keep this window open during the recording" warning */
#recordingWarningMessage {
    width: 90%; /* Set relative width within the modal */
    max-width: 350px; /* Ensure it stays within modal bounds */
    
    /* SC - Jan 16 2025 */
    font-family: 'MonumentGrotesk-Regular', sans-serif;
    font-size: 16px; 

    color: black; /* Readable font color */
    
    display: flex;
    /* flex-direction: column; Stack text properly */
    flex-direction: row; /* Change from column to row */
    align-items: center;
    justify-content: center;

    white-space: normal; /* Allow proper wrapping */
    
    position: relative;
    top: 75px; /* Move down by 10px; use a negative value to move up */
   
    text-align: center;
    z-index: 2; /* Ensure it overlays other elements */
    
    margin: 0 auto; /* Center align */
    padding-bottom: 28.1px; /* Adjust this value as needed */

}

/* SC - Feb 14 2025 - spacing for the white circle outline (with the red square); off by 0.1 pixel, so we use a different padding-bottom for Safari Browsers   */
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
    /* Safari-specific styles */
    #recordingWarningMessage {
        padding-bottom: 29px; /* adjust as needed for Safari */
    }
}

/* SC -Feb 14 2025 - more explicity hides the "Press Start Button Below ..." in the recording complete modal */
.hidden-waveform-message {
    display: none !important;
}

/* SC - Mar 15 2025 */
.copy-btn {
    font-family: 'MonumentGrotesk-Regular', sans-serif; 
    border: none;             
    background: transparent;  
    float: right;             
    cursor: pointer;          
    font-size: 15px;          
    outline: none;  
    margin-top: 8px;
    position: relative; 
    right: 8px;         
}

.copy-btn:focus {
    outline: none;
}

.copy-btn i {
    display: inline-block;
    pointer-events: none;     
    margin-right: 3px;        
}

.copy-btn:hover {
    opacity: 0.7;
}

.copy-btn * {
    user-select: none;
}

.copy-btn-history {
    font-family: 'MonumentGrotesk-Regular', sans-serif; 
    border: none;             
    background: transparent;  
    cursor: pointer;          
    font-size: 15px;          
    outline: none;  
    position: absolute; 
    top: 8px;         /* Align 8px from the top */
    right: 8px;       /* Align 8px from the right */
}

/* Remove focus outline */
.copy-btn-history:focus {
    outline: none;
}

/* Style the icon inside the button */
.copy-btn-history i {
    display: inline-block;
    pointer-events: none;     
    margin-right: 3px;        
}

/* Hover effect */
.copy-btn-history:hover {
    opacity: 0.7;
}

/* Prevent selection of text and icon */
.copy-btn-history * {
    user-select: none;
}


/* SC - Apr 3 2025 - settings buttons styling  */
.modal-body button.btn-clear {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-body button.btn-clear:hover {
    background-color: #000;
    color: #fff;
}s

.modal-footer button.btn-clear {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-footer button.btn-clear:hover {
    background-color: #000;
    color: #fff;
}


/* SC - May 4 2025  */
.main-container button.btn-clear {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* SC - May 4 2025  */
.main-container button.btn-clear:hover {
    background-color: #000;
    color: #fff;
}

/* ------------------------------------------------------------------------------------- */
/* SC - Apr 14 2025 0 Custom styling for Intro.js tooltips to match the settings modal */

/* Increase the width of the tooltip */
.introjs-tooltip {
    background-color: rgb(225, 241, 229) !important;  
    color: black !important;
    font-family: 'MonumentGrotesk-Regular', sans-serif !important;
    font-size: 17px !important;
    border-radius: 15px;
    padding: 5px;    
    width: 1000px;    
    padding-top: 20px !important;

}

/* Style the tooltip text */
.introjs-tooltiptext {
    margin-bottom: 15px;
    margin-top: 20px !important;

}

/* Round the helper layer (overlay on highlighted element) */
/* .introjs-helperLayer {
    border-radius: 15px;
} */

/* Align the navigation buttons */
.introjs-tooltipbuttons {
    text-align: center;
    margin-top: 15px;
}
/* Mimic the settings button style for Intro.js navigation buttons */
.introjs-prevbutton,
.introjs-nextbutton,
.introjs-skipbutton {
    background-color: transparent;  
    border: none;                   
    color: black;                  
    font-family: 'MonumentGrotesk-Bold', sans-serif;  
    font-size: 17px;
    margin: 1px;
    cursor: pointer;
    font-weight: normal !important;
    
}

/* Remove outline and box-shadow when the buttons are focused (pressed) */
.introjs-prevbutton:active,
.introjs-nextbutton:active, 
.introjs-skipbutton:active, 
.introjs-skipbutton:focus, 
.introjs-prevbutton:focus,
.introjs-nextbutton:focus {
    background-color: transparent !important;
    color: black !important;  /* Force text to revert to black when focused/active */
    outline: none;
    box-shadow: none;
    border:none;
}

/* Change text color on hover without affecting the background */
.introjs-prevbutton:hover,
.introjs-nextbutton:hover
.introjs-skipbutton:hover  {
    background-color: transparent !important;
    color: rgba(0, 0, 0, 0.7) !important;
}


.introjs-prevbutton.introjs-disabled {
    display: none !important;
}
  


/* Container for the bullet progress */
/* .introjs-bullets ul li a {    
    width: 12px;
    height: 12px;    transition: background-color 0.3s ease, transform 0.3s ease;

} */

  /* Style the active bullet */
/* .introjs-bullets ul li a.active {
    background-color: clear !important;        
    width: 12px;
    height: 12px;          
} */

/* Hover effect for each bullet */
/* .introjs-bullets ul li a:hover {
    width: 12px;
    height: 12px;      
} */

/* SC - May 4 2025 -  hide the step‐indicator “bullets” */
.introjs-bullets {
    display: none !important;
}

/* SC -May 4 2025 */
/* make the tooltip container a positioned parent */
.introjs-tooltip.first-step {
    position: relative !important;
  }
  
/* SC -May 4 2025 */
/* hide the Back button in that first-step tooltip */
.introjs-tooltip.first-step .introjs-prevbutton {
    display: none !important;
}

/* SC -May 4 2025 */
/* absolutely position the Skip button bottom-right */
.introjs-tooltip.first-step .introjs-skipbutton {
    position: absolute !important;
    bottom: 19px !important;
    left: 21px !important;    
    background: transparent;
    border: none;
    
    
}

/* SC - May 4 2025 */
/* style clear-buttons inside the Intro.js tooltip */
.introjs-tooltip button.btn-clear {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  /* SC - May 4 2025 */
  .introjs-tooltip button.btn-clear:hover {
    background-color: #000;
    color: #fff;
  }

/* SC - May 4 2025 */
/* add spacing to the right of any play icon in a clear-style button */
button.btn-clear i.fa-play {
    margin-left: 5px;
  }

  /* ------------------------------------------------------------------------------------- */