/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */



html{
	overflow-x:hidden;
}
.page-break {
    page-break-after: always;
}

.ai-btn-magnified {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-btn-magnified:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.ai-btn-magnified:active {
    transform: translateY(0);
}



/* Add this CSS to your stylesheet */
.dropdown-content {
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}
 #chatOutput * {
        page-break-inside: avoid; /* Prevent splitting elements */
        page-break-after: auto;
        page-break-before: auto;
    }
div.wpforms-container-full, div.wpforms-container-full *{
/* 	height: inherit !important; */
}
.page-id-646, .page-id-2133{
	border:5px solid #4A90E2;
}
#formPanel .wpforms-submit{
	background-color:#4A90E2 !important;
	color:#000;
	font-weight:600;
}

#formPanel{
/* 	border-right:6px solid #a8ffe8; */
}
.wpforms-field-description{
	font-size:11px !important;
}
.wpforms-container{
	position: relative !important;
}
.reg-sub{
	background-color:#000;
	width:100%;
 margin: 0 !important;
}
.reg-sub:hover{
	background-color:#00CA99;
	color:#000 !important;
}
.wpaicg-prompt-title{
    display:none !important;
}
.cst-cont{
/* 	padding:10px 0; */
	background-color: #fff;
	height: 93vh;
}
#formPanel {
/* 	height: 500px;
    margin: 0em;
    overflow-y: auto; */
	background-color:#fff;
	
}
.left-div {
	width:50%;
    height: 93vh !important; 
    margin: 0em;
    overflow-y: auto;
    box-sizing: border-box;
}
.right-div {
	box-sizing: border-box;
}
/* Dark background color for panel */
.res-pnl{
	background-color:#2b2b2b;
	color:#fff;
	min-height: 500px !important;
	position: relative;
	height: 93vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.wpforms-container{
	margin: 0 !important;
}
.wpforms-field{
	padding: 5px 0 !important;
}
.wpforms-field-label{
	margin: 0 !important;
  font-size: 12px !important;
}
.wpforms-field-divider h3{
	font-size:18px !important;
	margin-bottom:5px !important;
	margin-top:1px !important;
	padding-top: 1px !important;
}
#formPanel .wpforms-submit{
	width:100% !important ;
	margin-top:10px;
}
.btn-sbt-c{
	background-color:#000 !important;
}

.btnside{
	display:flex;
}
.slft{
	width: 40%;
}
.srgt{
	width: 50%;
}
#jsonUpload{
	font-size: 12px;
}

#chatOutput{
	flex-grow: 1;
/* 	min-height: 350px; */
	min-height: 72vh;
}
.svbtns{
	display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.cst-save{
	font-size:14px;
	font-weight:600;
	background-color:#fff !important;
	color:#000 !important;
	border-color:#000;
  display: flex;
	justify-content: flex-start;
	gap: 10px;
	padding: 10px;
	align-self: flex-end;
	margin:0 3px;
	width:100%;
}
.cst-save:hover{
	background-color:#000;
	color:#fff;
	border-color:#fff;
}
.wpforms-required-label{
	font-size:20px !important;
	line-height:0px;
}
.repeater-field-header-title{
	display:none;
}
.repeater-field-header-acctions-toogle{
	display:none;
}
.wpforms-form .repeater-field-header {
    z-index:1;
    position: absolute;
    left: 30%;
    margin-top: 15px;
}
.wpforms-form .wpforms-repeater-field-button-add{
	padding: 5px 10px 5px 10px !important;
}
.rcp_login_link{
	display:none !important;
}
.rcp_header{
	display:none !important;
}
.rcp_user_fieldset p{
	width: 50%;
  float: left;
	padding:5px;
}
.rcp_registration_total{
	display:none !important;
}
#rcp_submit_wrap input{
	background-color:#000;
	width:100%;
	color:#fff;
}
#wpforms-form-1366 label{ 
font-size: 12px;
}
#wpforms-form-1366 .wpforms-field-label{ 
margin-bottom:6px !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
	
  }
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    position: relative;
		border:5px solid #4A90E2;
  }
  .close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

/* Styles for modal */
.json-modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}
.json-modal-content {
background-color: #fff;
margin: 5% auto;
padding: 20px;
border: 5px solid #4A90E2;
width: 80%;
max-width: 700px;
}
.json-close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.json-close:hover,
.json-close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}


.containerjson{
/*     display: flex; */
    width: 100%;
/*     height: 100vh; */
}
.l-djson, .r-djson{
    width: 50%;
    padding: 7px 10px;
/*     display: flex; */
/* 	  text-align: center;
    align-items: center;
    justify-content: center; */
    font-size: 1.5rem;
}
.l100{
    width: 100%;
    padding: 7px 10px;
    font-size: 1.5rem;
}
.jincont{
	width:100%;
	display: flex;
}
.jlbl{
	display: block;
	font-size:15px;
	font-weight:600;
	margin-bottom:3px;
}





/* Default styles for buttons */
.button-container {
  display: flex;
  justify-content: center;
/*   margin-top: 20px; */
}

.theme-button {
  width: 20px;
  height: 20px;
  margin: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

/* White theme button */
.theme-button.light {
  background-color: white;
}
.theme-button.light:hover{
	background-color:white  !important;
}
.theme-button.light:focus{
	background-color:white  !important;
}

/* Black theme button */
.theme-button.dark {
  background-color: black;
}

/* Add blue border to active button */
.theme-button.active {
  border: 1px solid blue;
}
.spevoi{
	margin-top: -37px !important;
    margin-right: 4px !important;
    padding: 2px 6px !important;
    float: right !important;
    z-index: 9 !important;
    position: relative !important;
}

/* Light Theme */

body.light-mode .res-pnl{
  background-color: white;
  color: black;
}
body.light-mode .cst-save{
	color: #fff !important;
	background-color: #000 !important;
}
body.light-mode #formPanel{
	border-right:8px solid #000;
}
body.light-mode .spevoi{
	color: #000 !important;
	background-color: #fff !important;
}

/* Dark Theme */
body.dark-mode {
/*   background-color: #323232; */
/*   color: white; */
}
/* Dark Grey color for form */
body.dark-mode #formPanel{
  background-color: #2b2b2b;
	color:#fff !important;
}
body.dark-mode #formPanel{
	border-right:8px solid #fff;
}
body.dark-mode .wpforms-field-label{
	color: #fff !important;
}
body.dark-mode .wpforms-field-description{
	color: #fff !important;
}
body.dark-mode #wpforms-form-1366 label{
	color: #fff !important;
}
body.dark-mode #wpforms-form-1366 h3{
	color: #fff !important;
}
body.dark-mode #wpforms-form-1366 .wpforms-field-divider{
	border-top-color: #fff !important;
}

body.dark-mode .spevoi{
	color: #000 !important;
	background-color: #fff !important;
}
body.dark-mode #wpforms-1912-field_172{
	color:#fff;
}
body.dark-mode #wpforms-form-1912 label{
	color:#fff;
}
body.dark-mode #wpforms-form-1912  h3{
	color:#fff;
}
body.dark-mode #wpforms-1912-field_172 img{
	background-color:#fff;
	padding:5px 0px;
}
body.dark-mode #wpforms-form-3477 label{
	color:#fff;
}
body.dark-mode #wpforms-form-3477  h3{
	color:#fff;
}
.wpforms-error {
    border: 2px solid red;
    background-color: #ffe6e6;
}
div.wpforms-container div.wpforms-uploader .dz-preview .dz-image{
	width: 300px !important;
  height: 300px !important;
}
div.wpforms-container div.wpforms-uploader .dz-preview .dz-image img{
	max-width: 300px !important;
	width: 300px !important;
}


/* ========================================
   DARK THEME TABLE FIX - Add this at the end of style.css
   ======================================== */

/* Keep table text BLACK in dark theme for readability */
body.dark-mode #responsePanel table,
body.dark-mode #responsePanel table *,
body.dark-mode #chatOutput table,
body.dark-mode #chatOutput table *,
body.dark-mode .response-info table,
body.dark-mode .response-info table *,
body.dark-mode .res-pnl table,
body.dark-mode .res-pnl table *,
body.dark-mode table td,
body.dark-mode table td *,
body.dark-mode table th,
body.dark-mode table th *,
body.dark-mode table tr,
body.dark-mode table tr * {
    color: #000000 !important;
}

/* Ensure table cells have white/light backgrounds */
body.dark-mode table td {
    background-color: #ffffff !important;
}

body.dark-mode table th {
    background-color: #E0E0E0 !important;
    color: #000000 !important;
}

/* Preserve specific colored backgrounds and keep black text */
body.dark-mode table td[style*="background-color: #E6FFE6"],
body.dark-mode table tr[style*="background-color: #E6FFE6"] td {
    background-color: #E6FFE6 !important;
    color: #000000 !important;
}

body.dark-mode table td[style*="background-color: #FFFACD"],
body.dark-mode table tr[style*="background-color: #FFFACD"] td {
    background-color: #FFFACD !important;
    color: #000000 !important;
}

body.dark-mode table td[style*="background-color: #FFCDCD"],
body.dark-mode table tr[style*="background-color: #FFCDCD"] td {
    background-color: #FFCDCD !important;
    color: #000000 !important;
}

body.dark-mode table td[style*="background-color: #FFFA"],
body.dark-mode table tr[style*="background-color: #FFFA"] td {
    background-color: #FFFACD !important;
    color: #000000 !important;
}

body.dark-mode table td[style*="background-color: #F0F8FF"],
body.dark-mode table tr[style*="background-color: #F0F8FF"] td {
    background-color: #F0F8FF !important;
    color: #000000 !important;
}

body.dark-mode table td[style*="background-color: #0F"],
body.dark-mode table tr[style*="background-color: #0F"] td {
    background-color: #ADD8E6 !important;
    color: #000000 !important;
}

/* Override any white text in tables */
body.dark-mode table [style*="color: #fff"],
body.dark-mode table [style*="color: white"],
body.dark-mode table [style*="color: #FFF"],
body.dark-mode table [style*="color: rgb(255, 255, 255)"] {
    color: #000000 !important;
}

/* Ensure all text elements in tables are black */
body.dark-mode table p,
body.dark-mode table span,
body.dark-mode table div,
body.dark-mode table strong,
body.dark-mode table b,
body.dark-mode table li,
body.dark-mode table ul,
body.dark-mode table ol,
body.dark-mode table h1,
body.dark-mode table h2,
body.dark-mode table h3,
body.dark-mode table h4,
body.dark-mode table h5,
body.dark-mode table h6 {
    color: #000000 !important;
}

/* Make sure table borders are visible */
body.dark-mode table {
    border-color: #cccccc !important;
}

body.dark-mode table td,
body.dark-mode table th {
    border-color: #cccccc !important;
}

/* For sticky tables */
body.dark-mode .sticky-table-container table,
body.dark-mode .sticky-table-container table * {
    color: #000000 !important;
}

/* For medical tables */
body.dark-mode .medical-table-container table,
body.dark-mode .medical-table-container table * {
    color: #000000 !important;
}

/* For differential tables */
body.dark-mode .differential-table,
body.dark-mode .differential-table * {
    color: #000000 !important;
}

/* Content outside tables should remain white in dark mode */
body.dark-mode .res-pnl {
    color: #fff !important;
}

body.dark-mode #chatOutput > h1,
body.dark-mode #chatOutput > h2,
body.dark-mode #chatOutput > h3,
body.dark-mode #chatOutput > h4,
body.dark-mode #chatOutput > p,
body.dark-mode #responsePanel > h1,
body.dark-mode #responsePanel > h2,
body.dark-mode #responsePanel > h3,
body.dark-mode #responsePanel > h4,
body.dark-mode #responsePanel > p {
    color: #ffffff !important;
}

/* But headings and paragraphs INSIDE tables should be black */
body.dark-mode table h1,
body.dark-mode table h2,
body.dark-mode table h3,
body.dark-mode table h4,
body.dark-mode table p {
    color: #000000 !important;
}





/* Updated button container styles - all buttons in one row */
.btnside {
    display: flex;
    flex-wrap: nowrap; /* Keep all buttons in one row */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center;
    margin-bottom: 10px;
    margin-top: 15px; /* Push buttons 5px down */
    gap: 15px; /* Space between buttons */
}
.slft, .srgt {
    flex: 1; /* All buttons take equal space */
    max-width: 200px; /* Maximum width for each button */
}




/* File upload container */
.srgt {
    position: relative;
    display: inline-block;
}

/* Hide file input completely */
#mediaUpload, #jsonUpload {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}


/* Tooltip for file name on hover */
.file-name-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Arrow for tooltip */
.file-name-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

/* Show tooltip on hover */
.srgt:hover .file-name-tooltip {
    display: block;
}



/* Dark mode adjustments */
body.dark-mode .file-name-tooltip {
    background-color: #fff;
    color: #000;
}

body.dark-mode .file-name-tooltip::before {
    border-bottom-color: #fff;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .btnside {
        flex-wrap: wrap; /* Allow wrapping on mobile */
        gap: 12px;
    }
    
    .slft, .srgt {
        flex: 1 1 45%; /* Two buttons per row on tablets */
        max-width: none;
    }
}

@media (max-width: 480px) {
    .btnside {
        flex-direction: column;
        gap: 12px;
    }
    
    .slft, .srgt {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }
    
    
    
    .file-name-tooltip {
        max-width: 90%;
    }
}










/* extra editing for better looks */
/* Panel widths */
.side-panel {
    width: 15%;
    height: 93vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-panel.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    overflow: visible !important; /* ADD THIS - allows button to show outside */
}
.main-panel {
    width: 35%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-panel.expanded {
    width: 50% !important;
}

/* Arrow buttons - always visible, no background */
.collapse-btn {
    background: none !important;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

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

.collapse-btn svg {
    width: 24px;
    height: 24px;
    fill: #4A90E2;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.collapse-btn:hover svg {
    fill: #357ABD;
    transform: scale(1.2);
}

/* Arrow direction changes when collapsed - rotate 180 degrees */
body.left-collapsed .left-collapse svg {
    transform: rotate(180deg);
}

body.left-collapsed .left-collapse:hover svg {
    transform: rotate(180deg) scale(1.2);
}

body.right-collapsed .right-collapse svg {
    transform: rotate(180deg);
}

body.right-collapsed .right-collapse:hover svg {
    transform: rotate(180deg) scale(1.2);
}

/* Dark mode arrows */
body.dark-mode .collapse-btn svg {
    fill: #6eb6ff;
}

body.dark-mode .collapse-btn:hover svg {
    fill: #4A90E2;
}
.collapse-btn:active svg {
    transform: scale(1);
}

/* Left arrow - top RIGHT corner of left panel, stays visible when collapsed */
.left-collapse {
    right: 10px;
}

/* Right arrow - top LEFT corner of right panel, stays visible when collapsed */
.right-collapse {
    left: 10px;
}


.side-panel.collapsed .collapse-btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: fixed;
    z-index: 1001;
}

/* Adjust arrow position when left panel collapses */
body.left-collapsed #leftCollapseBtn {
    left: 5px;
    right: auto;
    position: fixed;
}

/* Adjust arrow position when right panel collapses */
body.right-collapsed #rightCollapseBtn {
    right: 5px;
    left: auto;
    position: fixed;
}

/* Normal state - arrows inside panels */
#leftCollapseBtn {
    position: absolute;
    right: 10px;
}

#rightCollapseBtn {
    position: absolute;
    left: 10px;
}
/* Position arrows at edge when collapsed */
body.left-collapsed .left-collapse {
    left: 5px;
    right: auto;
}

body.right-collapsed .right-collapse {
    right: 5px;
    left: auto;
}


/* Dark mode arrows */
body.dark-mode .collapse-btn svg {
    fill: #6eb6ff;
}

body.dark-mode .collapse-btn:hover svg {
    fill: #4A90E2;
}
/* Panel content fade effect */
.panel-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.side-panel.collapsed .panel-content {
    opacity: 0;
    display: none;
}

/* Hide scrollbars */
.left-div::-webkit-scrollbar,
.right-div::-webkit-scrollbar,
.side-panel::-webkit-scrollbar,
.main-panel::-webkit-scrollbar,
#formPanel::-webkit-scrollbar,
#responsePanel::-webkit-scrollbar,
#leftPanel::-webkit-scrollbar,
#rightPanel::-webkit-scrollbar {
    display: none;
}

.left-div,
.right-div,
.side-panel,
.main-panel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Dark mode for side panels */
body.dark-mode .side-panel {
    background-color: #1a1a1a;
}

body.dark-mode .side-panel h4,
body.dark-mode .side-panel h5 {
    color: #fff !important;
}

body.dark-mode .side-panel a {
    color: #6eb6ff !important;
}

body.dark-mode .side-panel a:hover {
    color: #4A90E2 !important;
}

body.dark-mode .collapse-btn svg {
    fill: #6eb6ff;
}

body.dark-mode .collapse-btn:hover svg {
    fill: #4A90E2;
}

body.dark-mode #rightPanel button {
    opacity: 0.95;
}

body.dark-mode #rightPanel button:hover {
    opacity: 1;
}

body.dark-mode .panel-content div[style*="background: #f8f9fa"] {
    background: #333 !important;
}

body.dark-mode .panel-content div[style*="color: #666"] {
    color: #aaa !important;
}

body.dark-mode .panel-content div[style*="color: #333"] {
    color: #fff !important;
}

/* Button hover effects */
#rightPanel button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

#rightPanel button:active {
    transform: translateY(0);
}

/* Notification boxes in dark mode */
body.dark-mode div[style*="background: #fff3cd"] {
    background: #664d03 !important;
}

body.dark-mode div[style*="background: #d4edda"] {
    background: #0f5132 !important;
}

body.dark-mode div[style*="background: #d1ecf1"] {
    background: #055160 !important;
}

body.dark-mode div[style*="color: #856404"],
body.dark-mode div[style*="color: #155724"],
body.dark-mode div[style*="color: #0c5460"] {
    color: #fff !important;
}

/* Remove borders */
.left-div, .main-panel, .res-pnl, .side-panel, .left-panel, .right-panel {
    border: none !important;
}


/* Force buttons to stay visible even when parent panel is hidden */
#leftCollapseBtn,
#rightCollapseBtn {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
}

/* Override panel collapse hiding for buttons */
.side-panel.collapsed #leftCollapseBtn,
.side-panel.collapsed #rightCollapseBtn {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: fixed !important;
    pointer-events: auto !important;
}

/* Ensure buttons are above everything when fixed */
body.left-collapsed #leftCollapseBtn,
body.right-collapsed #rightCollapseBtn {
    position: fixed !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}





.cst-cont {
    margin: 0 !important;
    padding: 0 !important;
}

/* Add subtle elevation/card effect to panels */
.side-panel,
.main-panel,
.res-pnl {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 10px;
    border: 1px solid #e0e0e0;
}
.res-pnl {
    width: 50% !important;
}
body.left-collapsed .res-pnl {
    width: 65% !important;
}

/* NEW: Adjust form panel width when left panel is collapsed */
body.left-collapsed .left-div {
    width: 35% !important;
}
/* Dark mode panel styling */
body.dark-mode .side-panel,
body.dark-mode .main-panel {
    background: #2b2b2b;
    border: 1px solid #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .res-pnl {
    background: #2b2b2b;
    border: 1px solid #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Add background to main container */
.cst-cont {
    background-color: #f0f2f5;
    padding: 10px;
    gap: 0;
}

body.dark-mode .cst-cont {
    background-color: #1a1a1a;
}

/* Remove old borders */
body.dark-mode #formPanel {
    border-right: none !important;
}

#formPanel {
    border-right: none !important;
}

/* Adjust panel spacing */
.side-panel,
.main-panel,
.res-pnl {
    margin: 10px 5px;
}

.side-panel:first-child {
    margin-left: 10px;
}

.side-panel:last-child {
    margin-right: 10px;
}





/* ========================================
   HIGHLY RESPONSIVE BUTTONS - NO EXTRA SPACE
   ======================================== */

/* Button container - no stretching */
.btnside {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 15px;
    width: auto;
}

.slft, .srgt {
    flex: 0 0 auto;
    width: auto;
    position: relative;
}

/* Clean button base style - only use needed space */
.btn-rfs, 
.ldbel, 
.jsupb {
    height: 36px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    background: #f5f5f5;
    color: #333333;
    border: 1px solid #e0e0e0;
    width: auto;
}

/* Force styles on all buttons */
.btn-rfs {
    background: #f5f5f5 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.ldbel {
    background: #f5f5f5 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    line-height: normal;
    display: inline-flex !important;
}

.jsupb {
    background: #f5f5f5 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

/* Hover effects */
.btn-rfs:hover, 
.ldbel:hover, 
.jsupb:hover {
    background: #ebebeb !important;
    border-color: #d0d0d0 !important;
    transform: translateY(-1px);
}

.btn-rfs:active, 
.ldbel:active, 
.jsupb:active {
    transform: translateY(0);
}

/* Hide file inputs */
#mediaUpload, #jsonUpload {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}

/* ========================================
   DARK MODE
   ======================================== */

body.dark-mode .btn-rfs,
body.dark-mode .ldbel,
body.dark-mode .jsupb {
    background: #3a3a3a !important;
    color: #ffffff !important;
    border: 1px solid #4a4a4a !important;
}

body.dark-mode .btn-rfs:hover,
body.dark-mode .ldbel:hover,
body.dark-mode .jsupb:hover {
    background: #454545 !important;
    border-color: #555555 !important;
}

/* ========================================
   HIGHLY RESPONSIVE DESIGN
   ======================================== */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
    .btnside {
        gap: 8px;
    }
    
    .btn-rfs, .ldbel, .jsupb {
        padding: 0 16px;
        font-size: 12px;
        height: 34px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .btnside {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .slft, .srgt {
        flex: 0 1 auto;
    }
    
    .btn-rfs, .ldbel, .jsupb {
        padding: 0 14px;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .btnside {
        gap: 8px;
    }
    
    .slft, .srgt {
        flex: 0 1 calc(50% - 4px);
    }
    
    .btn-rfs, .ldbel, .jsupb {
        width: 100%;
        height: 32px;
        font-size: 12px;
        padding: 0 12px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .btnside {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .slft, .srgt {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .btn-rfs, .ldbel, .jsupb {
        width: 100%;
        height: 36px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .btn-rfs, .ldbel, .jsupb {
        font-size: 11px;
        padding: 0 10px;
        gap: 4px;
    }
}


/* ========================================
   FIX HORIZONTAL SCROLLING ONLY
   ======================================== */

/* Prevent horizontal scroll on form panel */
#formPanel {
    overflow-x: hidden !important;
}

/* Allow buttons to wrap when needed */
.btnside {
    flex-wrap: wrap !important;
}

/* Make sure buttons don't overflow parent container */
.btn-rfs, .ldbel, .jsupb {
    max-width: 100%;
}













/* ========================================
   CLEAN MINIMAL COLLAPSE ARROWS
   Replace your existing .collapse-btn styles with this
   ======================================== */

/* Main button styling - clean and simple */
.collapse-btn {
    background: rgba(74, 144, 226, 0.20) !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    opacity: 0.8 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: all 0.25s ease;
}

.collapse-btn:hover {
    background: rgba(74, 144, 226, 0.25) !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

.collapse-btn:active {
    transform: scale(0.98);
}

/* Focus state for accessibility */
.collapse-btn:focus {
    outline: 2px solid rgba(74, 144, 226, 0.4);
    outline-offset: 2px;
}

/* SVG icon styling - bigger arrows */
.collapse-btn svg {
    width: 28px;
    height: 28px;
    fill: #4A90E2;
    transition: transform 0.25s ease;
}

.collapse-btn:hover svg {
    fill: #357ABD;
    transform: scale(1.1);
}

/* Arrow rotation when collapsed */
body.left-collapsed .left-collapse svg {
    transform: rotate(180deg);
}

body.left-collapsed .left-collapse:hover svg {
    transform: rotate(180deg) scale(1.1);
}

body.right-collapsed .right-collapse svg {
    transform: rotate(180deg);
}

body.right-collapsed .right-collapse:hover svg {
    transform: rotate(180deg) scale(1.1);
}

/* ========================================
   DARK MODE ARROWS
   ======================================== */

body.dark-mode .collapse-btn {
    background: rgba(110, 182, 255, 0.1) !important;
}

body.dark-mode .collapse-btn:hover {
    background: rgba(110, 182, 255, 0.15) !important;
}

body.dark-mode .collapse-btn svg {
    fill: #6eb6ff;
}

body.dark-mode .collapse-btn:hover svg {
    fill: #4A90E2;
}

/* ========================================
   POSITIONING
   ======================================== */

/* Normal state - arrows inside panels */
#leftCollapseBtn {
    position: absolute;
    right: 10px;
    top: 10px;
}

#rightCollapseBtn {
    position: absolute;
    left: 10px;
    top: 10px;
}

/* Collapsed state - fixed position at screen edges */
body.left-collapsed #leftCollapseBtn {
    position: fixed !important;
    left: 12px !important;
    right: auto !important;
    top: 100px;
}

body.right-collapsed #rightCollapseBtn {
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    top: 100px;
}

/* Force visibility when collapsed */
.side-panel.collapsed .collapse-btn {
    opacity: 0.8 !important;
    visibility: visible !important;
    display: flex !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and smaller */
@media (max-width: 768px) {
    .collapse-btn {
        width: 34px;
        height: 34px;
    }
    
    .collapse-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .collapse-btn {
        width: 32px;
        height: 32px;
    }
    
    .collapse-btn svg {
        width: 24px;
        height: 24px;
    }
    
    body.left-collapsed #leftCollapseBtn {
        left: 8px !important;
    }
    
    body.right-collapsed #rightCollapseBtn {
        right: 8px !important;
    }
}










/* Remove container background and improve layout */
.ai-chat-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 15px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100%;
    overflow: visible;
}

/* Control Buttons Container */
.control-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Response Counter - Professional Badge Style */
.response-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
    height: 36px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.response-counter span {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
}

#currentResponseIndex {
    color: #2563eb;
    font-weight: 700;
}

/* Dark mode for counter */
body.dark-mode .response-counter {
    background: #3a3a3a;
    color: #ffffff;
    border: 1px solid #4a4a4a;
}

body.dark-mode #currentResponseIndex {
    color: #60a5fa;
}

/* Base button styles for control buttons */
.ai-btn {
    height: 36px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    background: #f5f5f5;
    color: #333333;
    border: 1px solid #e0e0e0;
    flex: 0 0 auto;
}

/* Force consistent styling */
.ai-btn-nav,
.ai-btn-view,
.ai-btn-reset,
.ai-btn-magnified {
    background: #f5f5f5 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

/* Hover effects */
.ai-btn:hover {
    background: #ebebeb !important;
    border-color: #d0d0d0 !important;
    transform: translateY(-1px);
}

.ai-btn:active {
    transform: translateY(0);
}

/* Button text */
.ai-btn .btn-text {
    display: inline-block;
}

/* Dark mode */
body.dark-mode .ai-btn {
    background: #3a3a3a !important;
    color: #ffffff !important;
    border: 1px solid #4a4a4a !important;
}

body.dark-mode .ai-btn:hover {
    background: #454545 !important;
    border-color: #555555 !important;
}

/* Response Info */
.response-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
}

body.dark-mode .response-info {
    background: #2a2a2a;
    color: #9ca3af;
}

/* ========================================
   HIGHLY RESPONSIVE DESIGN
   ======================================== */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
    .control-buttons {
        gap: 8px;
    }
    
    .ai-btn {
        padding: 0 16px;
        font-size: 12px;
        height: 34px;
    }
    
    .response-counter {
        height: 34px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .ai-chat-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .control-buttons {
        flex: 1 1 100%;
        gap: 8px;
    }
    
    .response-counter {
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .ai-btn {
        padding: 0 14px;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .ai-chat-controls {
        gap: 8px;
    }
    
    .control-buttons {
        gap: 6px;
    }
    
    .ai-btn {
        height: 32px;
        font-size: 12px;
        padding: 0 12px;
        flex: 0 1 calc(50% - 3px);
    }
    
    /* Two buttons per row on smaller tablets */
    .ai-btn-nav {
        flex: 0 1 calc(50% - 3px);
    }
    
    .ai-btn-view,
    .ai-btn-reset {
        flex: 0 1 calc(50% - 3px);
    }
    
    .ai-btn-magnified {
        flex: 0 1 100%;
    }
    
    .response-counter {
        height: 32px;
        min-width: 55px;
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .ai-chat-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .ai-btn {
        width: 100%;
        height: 36px;
        flex: 1 1 auto;
    }
    
    .response-counter {
        width: 100%;
        height: 36px;
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .ai-btn {
        font-size: 11px;
        padding: 0 10px;
        gap: 4px;
    }
    
    .response-counter {
        font-size: 11px;
        padding: 4px 8px;
    }
}








/* ========================================
   LEFT NAVIGATION PANEL STYLING
   ======================================== */

/* Main Navigation Title */
.nav-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

body.dark-mode .nav-title {
    color: #ffffff;
}

/* Panel Content - Flexbox Layout */
.panel-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: auto;
}

/* Left Panel - Proper Height */
.left-panel {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
}

/* Section Spacing */
.nav-section {
    margin-bottom: 25px;
}

/* Section Titles */
.nav-section-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

body.dark-mode .nav-section-title {
    color: #adb5bd;
}

/* Navigation Buttons Container */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Navigation Button - EXACT SAME AS CONTROL BUTTONS WITH !important */
.nav-btn {
    height: 36px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    position: relative !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background: #f5f5f5 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    width: 100% !important;
}

.nav-btn:hover {
    background: #ebebeb !important;
    border-color: #d0d0d0 !important;
    transform: translateY(-1px) !important;
}

.nav-btn:active {
    transform: translateY(0) !important;
}

.nav-icon {
    font-size: 16px !important;
    flex-shrink: 0 !important;
    color: inherit !important;
}

.nav-text {
    flex: 1 !important;
    text-align: left !important;
    color: inherit !important;
}

body.dark-mode .nav-btn {
    background: #3a3a3a !important;
    color: #ffffff !important;
    border: 1px solid #4a4a4a !important;
}

body.dark-mode .nav-btn:hover {
    background: #454545 !important;
    border-color: #555555 !important;
}

/* Recent Activity List */
.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.activity-item {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.activity-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.activity-title {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 11px;
    color: #888;
}

body.dark-mode .activity-item {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

body.dark-mode .activity-item:hover {
    background: #353535;
    border-color: #454545;
}

body.dark-mode .activity-title {
    color: #ffffff;
}

body.dark-mode .activity-time {
    color: #adb5bd;
}

/* File Upload Wrapper */
.file-upload-wrapper {
    margin-top: 10px;
}

/* Make sure label acts as button */
.file-upload-wrapper label.nav-btn {
    margin-top: 0 !important;
}

/* Navigation Links (for Resources & Help) */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #4A90E2;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #357ABD;
    padding-left: 4px;
}

.link-icon {
    font-size: 16px;
}

body.dark-mode .nav-link {
    color: #60a5fa;
}

body.dark-mode .nav-link:hover {
    color: #93c5fd;
}

/* Footer Section - FIXED */
.nav-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: auto;
    position: relative;
}

body.dark-mode .nav-footer {
    border-top-color: #4a4a4a;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #4A90E2;
}

body.dark-mode .footer-link {
    color: #adb5bd;
}

body.dark-mode .footer-link:hover {
    color: #60a5fa;
}

.disclaimer-text {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    margin-bottom: 20px;
}

.disclaimer-text strong {
    color: #d32f2f;
    display: block;
    margin-top: 5px;
}

body.dark-mode .disclaimer-text {
    background: #2a2a2a;
    color: #adb5bd;
    border-left-color: #ffa726;
}

body.dark-mode .disclaimer-text strong {
    color: #ef5350;
}

/* Navigation button wrapper for file input */
.nav-btn-wrapper {
    position: relative;
    width: 100%;
}

.nav-btn-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}

.nav-btn-wrapper label.nav-btn {
    display: inline-flex !important;
    width: 100%;
    margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-btn {
        padding: 0 16px !important;
        font-size: 12px !important;
        height: 34px !important;
    }
}

@media (max-width: 768px) {
    .nav-title {
        font-size: 16px;
    }
    
    .nav-section-title {
        font-size: 12px;
    }
    
    .nav-btn {
        height: 32px !important;
        font-size: 12px !important;
        padding: 0 12px !important;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        height: 36px !important;
    }
    
    .left-panel {
        height: auto;
    }
}




/* ========================================
   MAIN FOOTER (Bottom of Page)
   ======================================== */

.footer-section {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    clear: both;
}

.footer-links-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-link-main {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link-main:hover {
    color: #4A90E2;
    text-decoration: underline;
}

.footer-separator {
    color: #999;
    font-size: 14px;
}

/* Dark Mode */
body.dark-mode .footer-section {
    background-color: #2a2a2a;
    border-top-color: #4a4a4a;
}

body.dark-mode .footer-link-main {
    color: #ffffff;
}

body.dark-mode .footer-link-main:hover {
    color: #60a5fa;
}

body.dark-mode .footer-separator {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-section {
        padding: 15px;
        margin-top: 30px;
    }
    
    .footer-links-main {
        gap: 10px;
        font-size: 13px;
    }
    
    .footer-link-main {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-links-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-separator {
        display: none;
    }
}












/* ========================================
   CALCULATOR MODALS - LEFT SIDEBAR STYLE
   ======================================== */

.calculator-modal {
    display: block;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calculator-modal-content {
    background-color: #ffffff;
    position: fixed;
    left: 240px; /* Adjust this value based on your left sidebar width */
    top: 50%;
    transform: translateY(-50%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

.calculator-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 20px 20px 0 0;
    color: white;
    flex-shrink: 0;
}

.calculator-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.calculator-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    line-height: 1;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.calculator-modal-body {
    padding: 32px 28px;
    overflow-y: auto;
    flex: 1;
}

.calc-input-group {
    margin-bottom: 24px;
}

.calc-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: #60a5fa;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.calc-input-group input::placeholder {
    color: #9ca3af;
}

.calc-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.35);
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.45);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.calc-button:active {
    transform: translateY(0);
}

.calc-result {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid #bfdbfe;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-error {
    color: #ef4444;
    font-weight: 600;
    margin: 0;
    text-align: center;
    font-size: 15px;
}

.bmi-result-display,
.unit-result-display {
    text-align: center;
    width: 100%;
}

.bmi-result-display p {
    margin: 12px 0;
    font-size: 16px;
    color: #1f2937;
}

.bmi-value {
    font-size: 36px;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    margin: 12px 0;
}

.bmi-underweight {
    color: #3b82f6;
    font-weight: 700;
    font-size: 19px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.bmi-normal {
    color: #10b981;
    font-weight: 700;
    font-size: 19px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.bmi-overweight {
    color: #f59e0b;
    font-weight: 700;
    font-size: 19px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.bmi-obese {
    color: #ef4444;
    font-weight: 700;
    font-size: 19px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.unit-result-display p {
    margin: 10px 0;
    font-size: 17px;
    color: #1f2937;
    font-weight: 500;
}

.unit-result-display strong {
    color: #3b82f6;
    font-size: 19px;
}

/* Scrollbar styling */
.calculator-modal-body::-webkit-scrollbar {
    width: 6px;
}

.calculator-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.calculator-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.calculator-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark Mode */
body.dark-mode .calculator-modal {
    background-color: rgba(0, 0, 0, 0.6);
}

body.dark-mode .calculator-modal-content {
    background-color: #1f2937;
}

body.dark-mode .calc-input-group label {
    color: #f3f4f6;
}

body.dark-mode .calc-input-group input,
body.dark-mode .calc-input-group select {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .calc-input-group input:focus,
body.dark-mode .calc-input-group select:focus {
    background: #4b5563;
    border-color: #60a5fa;
}

body.dark-mode .calc-result {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    border-color: #3b82f6;
}

body.dark-mode .bmi-result-display p,
body.dark-mode .unit-result-display p {
    color: #f3f4f6;
}

body.dark-mode .bmi-value {
    color: #60a5fa;
}

body.dark-mode .unit-result-display strong {
    color: #60a5fa;
}

body.dark-mode .bmi-underweight {
    background: rgba(96, 165, 250, 0.2);
}

body.dark-mode .bmi-normal {
    background: rgba(16, 185, 129, 0.2);
}

body.dark-mode .bmi-overweight {
    background: rgba(245, 158, 11, 0.2);
}

body.dark-mode .bmi-obese {
    background: rgba(239, 68, 68, 0.2);
}

body.dark-mode .calculator-modal-body::-webkit-scrollbar-track {
    background: #374151;
}

body.dark-mode .calculator-modal-body::-webkit-scrollbar-thumb {
    background: #4b5563;
}

body.dark-mode .calculator-modal-body::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-modal-content {
        left: 220px;
    }
}

@media (max-width: 768px) {
    .calculator-modal-content {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }
    
    @keyframes slideInLeft {
        from {
            transform: translate(-50%, -50%) scale(0.9);
            opacity: 0;
        }
        to {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
    }
    
    .calculator-modal-header {
        padding: 20px 24px;
    }
    
    .calculator-modal-header h3 {
        font-size: 20px;
    }
    
    .calculator-modal-body {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .calculator-modal-content {
        border-radius: 16px;
    }
    
    .calculator-modal-header {
        border-radius: 16px 16px 0 0;
    }
    
    .calc-input-group {
        margin-bottom: 20px;
    }
    
    .bmi-value {
        font-size: 32px;
    }
}






/* Nav Section Header with Search */
.nav-section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
    min-height: 32px;
}

.nav-section-title {
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.nav-section-title.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Search Wrapper - Expandable Design */
.activity-search-wrapper {
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.activity-search-wrapper.full-width {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 6px 8px;
    transition: all 0.3s ease;
    width: 40px;
    overflow: hidden;
}

body.dark-mode .search-input-group {
    background: #2a2a2a;
}

.search-input-group.expanded {
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .search-input-group.expanded {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-input-group:focus-within {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.dark-mode .search-input-group:focus-within {
    background: #333;
}

.search-icon {
    font-size: 16px;
    color: #666;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body.dark-mode .search-icon {
    color: #aaa;
}

.search-input-group.expanded .search-icon {
    margin-right: 8px;
}

.activity-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
    padding: 4px 0;
    min-width: 0;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-input-group.expanded .activity-search-input {
    width: 100%;
    opacity: 1;
}

body.dark-mode .activity-search-input {
    color: #fff;
}

.activity-search-input::placeholder {
    color: #999;
    font-size: 12px;
}

body.dark-mode .activity-search-input::placeholder {
    color: #666;
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    transition: all 0.3s ease;
    line-height: 1;
    opacity: 0;
    width: 0;
    flex-shrink: 0;
}

.search-input-group.expanded .clear-search-btn {
    opacity: 1;
    width: auto;
}

.clear-search-btn:hover {
    color: #333;
}

body.dark-mode .clear-search-btn:hover {
    color: #fff;
}

/* Activity Items */
.activity-item {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s;
    position: relative;
}

.activity-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(2px);
}

body.dark-mode .activity-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.activity-item.placeholder-text {
    color: #999;
    font-style: italic;
    text-align: center;
    cursor: default;
}

.activity-item.placeholder-text:hover {
    background-color: transparent;
    transform: none;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.activity-filename {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    font-size: 0.85em;
    color: #666;
}

body.dark-mode .activity-time {
    color: #aaa;
}

.match-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
    flex-shrink: 0;
}

.activity-diagnosis {
    font-size: 0.88em;
    color: #555;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .activity-diagnosis {
    color: #bbb;
}

.highlight {
    background-color: #ffeb3b;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 600;
}

body.dark-mode .highlight {
    background-color: #fbc02d;
    color: #000;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
    font-size: 13px;
}
























/* ============================================ */
/* SECTION BLOCK STYLES */
/* ============================================ */
/* Hide HR separators */
#chatOutput hr {
    display: none !important;
}

/* =========================================================
   SECTION BLOCK – CARD WRAPPER
   ========================================================= */

.section-block {
    border: 1px solid rgba(66, 135, 245, 0.3) !important;
    border-radius: 8px !important;
    margin: 24px 0 !important;
    background: rgba(249, 250, 251, 0.3) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;

    overflow-x: visible !important;
    overflow-y: visible !important;

    transition: all 0.2s ease !important;
    padding: 0 !important;
}

/* Dark mode */
body.dark-theme .section-block,
body[data-theme="dark"] .section-block {
    border-color: rgba(66, 135, 245, 0.4) !important;
    background: rgba(30, 30, 30, 0.3) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .section-block:hover,
body[data-theme="dark"] .section-block:hover {
    box-shadow: 0 4px 12px rgba(66, 135, 245, 0.25) !important;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-block > h4 {
    margin: 0 !important;
    padding: 16px 40px 16px 20px !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-theme .section-block > h4,
body[data-theme="dark"] .section-block > h4 {
    background: transparent !important;
}

/* =========================================================
   CONTENT SPACING (SAFE FOR TABLES)
   ========================================================= */

.section-block > *:not(h4):not(table) {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* First element after header */
.section-block > h4 + * {
    padding-top: 16px !important;
    margin-top: 0 !important;
}

/* Last element spacing */
.section-block > *:last-child {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
}

/* =========================================================
   PARAGRAPHS & LISTS
   ========================================================= */

.section-block > p {
    margin: 8px 0 !important;
    line-height: 1.6 !important;
}

.section-block > ul,
.section-block > ol {
    margin: 8px 0 !important;
    padding-left: 44px !important;
}

.section-block > ul > li,
.section-block > ol > li {
    margin: 6px 0 !important;
    line-height: 1.6 !important;
}

/* =========================================================
   TABLE – ACTION COLUMN FIX
   ========================================================= */

.section-block table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 16px 0 !important;
}

/* Table cells */
.section-block th,
.section-block td {
    padding: 10px 12px !important;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
}

/* Reserve space for Actions column */
.section-block th:last-child,
.section-block td:last-child {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    text-align: center !important;
}

/* Keep action buttons inside cell */
.section-block td:last-child > * {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}



.section-block * {
    border-left: none !important;
}

/* =========================================================
   EDIT MODE STATE
   ========================================================= */

.section-block:has(.section-editing-mode) {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

body.dark-theme .section-block:has(.section-editing-mode),
body[data-theme="dark"] .section-block:has(.section-editing-mode) {
    border-color: rgba(16, 185, 129, 0.5) !important;
}
.section-block {
    padding-right: 5px !important;
    padding-left: 5px !important;
}











/* Video Modal Specific Styles */
.video-modal-content {
    max-width: 900px !important;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    display: block;
    max-height: 70vh;
    object-fit: contain;
}



/* user guide Specific Styles */
/* User Guide Modal Specific Styles */
.user-guide-modal-content {
    max-width: 700px !important;
}

.user-guide-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.guide-section {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #4a90e2;
}

.guide-section-title {
    font-size: 15px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-icon {
    font-size: 18px;
}

.guide-list {
    padding-left: 20px;
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.guide-list li {
    margin-bottom: 8px;
}

.guide-ordered-list {
    list-style-type: decimal;
}

.guide-badge-container {
    margin-top: 12px;
}

.guide-badge {
    font-size: 11px;
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 20px;
    color: #666;
    display: inline-block;
    font-weight: 500;
}

.guide-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.guide-disclaimer {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.guide-disclaimer-text {
    font-size: 12px;
    color: #856404;
    line-height: 1.6;
    margin: 0;
}

.guide-disclaimer-text strong {
    color: #664d03;
}

/* Scrollbar styling for user guide */
.user-guide-body::-webkit-scrollbar {
    width: 6px;
}

.user-guide-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.user-guide-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.user-guide-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}





/* mobile working */



@media (max-width: 768px) {
    /* Stack panels vertically on mobile */
    .cst-cont {
        flex-direction: column !important;
        height: auto !important;
    }

    /* Left navigation panel - full width on mobile */
    .side-panel.left-panel {
        width: 100% !important;
        height: auto !important;
        order: 1;
    }

    /* Form panel (Clinical Draft) - full width, comes first */
    #formPanel.left-div.main-panel {
        width: 100% !important;
        height: auto !important;
        order: 2;
    }

    /* Response panel - full width, comes AFTER form panel */
    .res-pnl.right-div.main-panel {
        width: 100% !important;
        height: auto !important;
        order: 3;
    }
}

@media (max-width: 768px) {

    /* ── Top action buttons (Clear All, Upload Media, etc.) ── */
    .btnside {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .slft, .srgt {
        width: 100% !important;
        flex: unset !important;
    }

    .btn-rfs, .ldbel, .jsupb {
        width: 100% !important;
        font-size: 12px !important;
        padding: 0 10px !important;
        height: 36px !important;
        justify-content: center !important;
    }

    /* ── Response panel control buttons ── */
    .ai-chat-controls {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .control-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .ai-btn {
        width: 100% !important;
        height: 36px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
        justify-content: center !important;
    }

    /* Counter badge stays on its own row */
    .response-counter {
        width: 100% !important;
        justify-content: center !important;
        height: 32px !important;
    }

    /* Hide button text labels, keep icons only on very small screens */
    @media (max-width: 400px) {
        .btn-text {
            display: none !important;
        }
        .ai-btn {
            font-size: 16px !important;
        }
    }
}



@media (max-width: 768px) {
    /* Nuclear option - targets all submit-area buttons */
    #formPanel .wpforms-container .wpforms-submit-container,
    #formPanel .wpforms-container .wpforms-field-submit {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #formPanel .wpforms-container .wpforms-submit-container button,
    #formPanel .wpforms-container .wpforms-field-submit button {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        font-size: 12px !important;
        padding: 12px 4px !important;
    }
}

@media (max-width: 768px) {
    /* Sidebar overlays content instead of pushing it */
    .side-panel.left-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 15px rgba(0,0,0,0.2);
    }

    /* When sidebar is open (not collapsed) */
    .side-panel.left-panel:not(.collapsed) {
        transform: translateX(0);
    }

    /* Dark overlay behind sidebar */
    body.sidebar-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }

    /* Form and response panels take full width */
    #formPanel.left-div.main-panel,
    .res-pnl.right-div.main-panel {
        width: 100% !important;
    }

    /* FIX: Keep collapse button always at fixed position on mobile */
    #leftCollapseBtn {
        position: fixed !important;
        left: 8px !important;
        top: 100px !important;
        right: auto !important;
        z-index: 99999 !important;
    }

    /* When sidebar is open, move button to edge of sidebar */
    body.sidebar-open #leftCollapseBtn {
        left: 248px !important;
    }
}



/* ── Collapse Button - n ── */
.collapse-btn.left-collapse {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 48px !important;
    border-radius: 0 8px 8px 0 !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-left: none !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
    z-index: 99999 !important;
    left: 0 !important;
}

.collapse-btn.left-collapse:hover {
    background: #e9ecef !important;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15) !important;
    width: 26px !important;
}

/* Arrow icon */
.collapse-btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.collapse-btn-icon svg {
    fill: none !important;
    stroke: #555 !important;
    transition: transform 0.3s ease !important;
}

body.dark-mode .collapse-btn-icon svg,
body[data-theme="dark"] .collapse-btn-icon svg {
    stroke: #cbd5e0 !important;
    fill: none !important;
}
/* Hide label */
.collapse-btn-label {
    display: none !important;
}

/* Arrow direction */
body:not(.left-collapsed) .collapse-btn-icon svg {
    transform: rotate(0deg) !important;
}

body.left-collapsed .collapse-btn-icon svg {
    transform: rotate(180deg) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .collapse-btn.left-collapse {
        width: 20px !important;
        height: 44px !important;
        top: 120px !important;
        left: 0 !important;
        border-radius: 0 8px 8px 0 !important;
    }

    body.sidebar-open .collapse-btn.left-collapse {
        left: 248px !important;
    }
}

/* Dark mode */
body.dark-mode .collapse-btn.left-collapse,
body[data-theme="dark"] .collapse-btn.left-collapse {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3) !important;
}

body.dark-mode .collapse-btn-icon svg,
body[data-theme="dark"] .collapse-btn-icon svg {
    fill: #cbd5e0 !important;
}






/* Hide mobile toggle on desktop */
.mobile-theme-toggle {
    display: none;
}

/* On mobile: hide original two buttons, show toggle icon */
@media screen and (max-width: 768px) {
    .mobile-theme-toggle {
        display: flex;
        align-items: center;
    }

    #lightThemeButton,
    #darkThemeButton {
        display: none !important;
    }

    .mobile-theme-toggle button {
    background: #ffffff;
    border: 2px solid #dddddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
	body.dark-mode .mobile-theme-toggle button {
    background: #ffffff !important;
    border-color: #dddddd !important;
}
}


/* ========================================
   DARK MODE - DISCLAIMER / NOTE MESSAGE FIX
   ======================================== */

body.dark-mode .note-message {
    background-color: #3d2e00 !important;
    border-color: #ffa726 !important;
    color: #ffe082 !important;
}

body.dark-mode .note-message strong {
    color: #ffe082 !important;
}

body.dark-mode .note-message strong[style*="color: #d9534f"],
body.dark-mode .note-message strong span {
    color: #ff8a80 !important;
}

body.dark-mode .note-message div {
    color: #ffe082 !important;
}