/* ----------------------------------------------- */
/*                                                 */
/*  Title:    style.css                            */
/*  App:      Anesthesia Simulator 7               */
/*  Author:   Anesoft Corporation                  */
/*  URL:      anesoft.com                          */
/*  App:      app.anesoft.com                      */
/*                                                 */
/*  Redesign: Everplex                             */
/*  URL:      everplex.org                         */
/*  Date:     2025-06-07                           */
/*                                                 */
/*  style.css styles everything except the         */
/*  UserControl center screens                     */
/*                                                 */
/* ----------------------------------------------- */

/* btnSaveCaseLog and txtSavedCaseLog shown on divCaseLog2 */
/* see anesthsim.css */



:root {
    --bg-primary: #000; /* black */
    --bg-secondary: #333; /* very dark gray */
    --bg-tertiary: #3e444a; /* dark gray */
    --bg-fourth: #4e4e4e;  /* same as dark-theme fieldset */
    --bg-content: #1f2227; /* very very dark gray */
    --text-primary: #fff; /* white */
    --text-secondary: #ccc;
    --text-white: #fff;
    --topbar-primary: #000;
    --topbar-secondary: #1f2329;
    --sidebar-primary: #000;
    --sidebar-secondary: #1f2329;
    --accent-color: #16a2b9;
    --accent-color2: #88d9e6;
    --accent-color3: #c659ae; /* lt pink */
    --accent-color4: #47a9c2; /* teal */
    --accent-color4-hover: #57c0da; /* teal */
    --accent-color5: #5b646e; /* lt grey-blue */
	--accent-color7: #644c9a; /* pale purple */
	--accent-color8: #4ea061; /* pale green */
	--accent-color9: #59626b; /* pale grey */
    --links-color: #9debff;
    --border-color: #444;
    --content-div-bg: #374044;
    --content-div-select: #516168;
    --content-div-button: #47a9c2;
    --content-div-button-hover: #5edfff;   
    --content-div-confirm: #629948;
    --content-border: 3px solid #374044;
    --content-title-color: #84e3fb;
    --footer-bg: #1f2329;
    --footer-button-bg: #2a2f38;
	--alert-confirm: #629948;
	--alert-confirm-hover: #82cc60; 
	--alert-cancel: #c2478b;
	--alert-cancel-hover: #eb57a8; 
	--fieldset-title-color: #E6E600;
    --card-box-shadow: 0 1px 3px rgb(0 0 0 / 22%), 
                       0 1px 7px rgb(0 0 0 / 44%);
}

.light-theme {
    --bg-primary: #f0f0f0;   /* light gray */
    --bg-secondary: #ededed; /* slightly darker gray */
    --bg-tertiary: #eee;     /* same gray as ededed */
    --bg-fourth: #bfbfbf;  /* same as light-theme fieldset */
    --bg-content: #f0f0f0;   /* light gray */
    --text-primary: #333;
    --text-secondary: #666;
    --text-white: #fff;
    --topbar-primary: #e6e6e6;
    --topbar-secondary: #d7d7d7;
    --sidebar-primary: #ededed;
    --sidebar-secondary: #d7d7d7;
    --accent-color: #0056b3;
    --accent-color9: #c7d5e3;
    --links-color: #5c90ad;
    --border-color: #ccc;
    --content-div-bg: #ececec;
    --content-div-select: #f9f9f9;
    --content-div-button: #5bc0de;
    --content-div-confirm: #d4f6c4;
    --content-border: 3px solid #ddd;
    --content-title-color: #47a9c2;
	--fieldset-title-color: #19c605; /* red *** #ea1a2f */
    --footer-bg: #eee;
    --footer-button-bg: #2a2f38;
	--alert-confirm: #629948;
	--alert-cancel: #c2478b;
    --card-box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 
                       0 1px 4px rgb(0 0 0 / 24%);
}

/* General Styles */
html {
	overflow-x: hidden;
}

*:focus {
    outline: none;
}
*:not(input):not(textarea):not([contenteditable="true"]):focus {
    outline: none;
}

body {
	margin: 0%;
	padding: 0%;
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Prevent selection in UI containers/elements */
.login,
.copyright,
.site-tag,
.footer-menu,
.dev-tag,
.menu,
.breadcrumbs,
.modal-content,
.icon-circle,
.sidebar-button,
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in inputs and other editable content */
input,
h1, h2, h3, h4, h5, h6, h7,
textarea,
select,
.red.error,
.modal input,
.modal textarea,
.modal select,
.modal .modal-static,
#txtCaseTitle,
.preop-content,
.screen-content {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

a {
    color: var(--links-color);
    text-decoration: none;
}

button {
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Reset */

#main-content-outer {
/*	overflow-x: hidden;   */
    display: flex;
}

#divDisplayContent * {
    box-sizing: border-box;
}

/* Top Menu */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--topbar-primary);
}

.logo {
    font-size: 1.55vw;
}

.logo a {
    color: var(--text-primary);
	height: 7.48vh; 
    display: inline-flex;
    position: absolute;
    top: 7px;
}

.light-theme .logo a {
	filter: invert(100%);
}

.logo a:hover {
    /* color: #76d5f6; ** for text */
	filter: brightness(50%) invert(1) sepia(1) saturate(232%) hue-rotate(156deg); /* achieves same color from white */
}

.logout {
	display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0 15px 0;
    margin-top: 7px;
    margin-bottom: -10px;
    margin-left: 0;
    background: rgba(0,0,0,0.3);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
	cursor: pointer;
}
.logout:hover {
    /* background: rgba(0,0,0,0.2); */	
    background-color: var(--accent-color3);
}
.light-theme .logout { 
	background: rgba(50,50,50,0.1);
}
.light-theme .logout:hover { 
	background: rgba(50,50,50,0.2);
}

.center-title {
    font-family: 'Kadwa', 'Open Sans', Arial, sans-serif;
	font-size: 1.87vw;
    font-weight: normal;
    margin-bottom: -13px;
    margin-top: -8px;	
}

/* for adding the matching logo background to title */
.center-title img {
	filter: invert(100%);
    position: absolute;
    margin-left: -23.89vw; 
    height: 7.48vh;
    top: 8px;
}

.light-theme .center-title img {
	filter: invert(0%);
}

.user-menu {
    display: flex;
    align-items: center;
}

.my-account {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.my-account span {
    margin-right: 10px;
    font-size: 14px; /* Changed from viewport units to fixed pixels */
}

.my-settings {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 44px;
    margin: 0;
    padding: 0 10px;
    position: absolute;
    top: 10px;
    right: 165px; /* Increased from 153px to add more space */
}

.my-settings span {
    font-size: 14px;
    margin-left: 7px;
}

.my-settings .fas {
    font-size: 17px;
    color: #ccc;
    margin-right: 0;
    margin-top: 2px;
}

.light-theme .my-settings .fas {
    color: #888;
}

.hamburger-menu {
    cursor: pointer;
    margin-left: 15px;
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* Second Top Bar */
.second-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px; 
    background-color: var(--topbar-secondary);
    /* border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color); */
}

.timer-score {
    display: flex;
    align-items: center;
}

.timer, .score {
    padding: 5px 15px;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    font-size: 1.03vw; 
    color: var(--text-white);
    white-space: nowrap;
}

#btnTime {
}

.timer {
    background-color: #47a9c2;
    margin-right: 19px;
}

#txtScore {
}

.score {
    background-color: #27a949;
    margin-right: 12px;
}

.action-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.action-button {
    display: flex;
    margin: 0; 
    padding: 0 0.78vw; 
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.03vw; 
    cursor: pointer;
}
	
.action-button i {
    font-size: 1.29vw; /* controls size of image in second-top-bar icons */
    color: var(--text-white);
}

.action-button:not(.new-case) {
    margin-right: 0;
}

.new-case {
    margin-left: 2.60vh; 
}

.icon-circle {
    width: 5.97vh; 
    height: 5.97vh; 
    margin-right: 0.65vw;  
    min-width: 18px; 
    min-height: 18px;  
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-account .icon-circle {
    background-color: #16a2b9;
}

.my-account .icon-circle i {
    color: var(--text-white);
}

.my-account:hover .icon-circle {
    background-color: #1cbfd9;
}

.cases .icon-circle {
    background-color: #777;
}

.preop .icon-circle {
    background-color: #25a945;
}

.preop:hover .icon-circle {
    background-color: #2bc951;
}

.case-help .icon-circle {
    background-color: #007cfc;
}

.case-help:hover .icon-circle {
    background-color: #1a8dff;
}

.case-log .icon-circle {
    background-color: #6b40c1;
}

.case-log:hover .icon-circle {
    background-color: #7c52d2;
}

.new-case .icon-circle {
    background-color: #555;
}

.new-case:hover .icon-circle {
    background-color: #777;
}

/* Sidebar */
.sidebar {
    width: 12vw; 
    /* height: determined by contents, not this height */
    padding: 0; 
    position: absolute;
    top: 18.05vh; 
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--sidebar-primary);
    overflow-y: hidden; 
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 5.86vw;
    overflow-x: hidden;
}
.sidebar.collapsed .sidebar-button:hover {
	margin: 1px 0.85vw 1px 0.26vw;  
    padding: 1.01vh 0.78vw 1.01vh 0.78vw;  
}

.sidebar-button {
    position: relative;
	margin: 1px 0.85vw 1px 0.26vw;    
    padding: 1.01vh 0.78vw 1.01vh 0.78vw;   
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
    background: none;
    box-shadow: none;
    border: none;
}

.sidebar-button span {
    font-size: 1.03vw; 
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

.sidebar-button:hover {
    background: var(--sidebar-secondary);
}

.sidebar-button:hover .icon-circle {
    box-shadow: var(--card-box-shadow);
    -moz-box-shadow: var(--card-box-shadow);
    -webkit-box-shadow: var(--card-box-shadow);
}

.sidebar-button .icon-circle {
    width: 5.97vh; 
    height: 5.97vh; 
    flex-shrink: 0;
    color: var(--text-white);
}

.sidebar-button .icon-circle i {
    font-size: 2.88vh; 
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.42vw; 
    cursor: pointer;
    margin-right: 10px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.75vh;
    height: 5.75vh;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
}

.sidebar.collapsed .sidebar-button span {
    opacity: 0;
    width: 0;
    margin-left: 0;
}

.toggle-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-collapsed .toggle-sidebar .fa-bars {
    display: none;
}

.sidebar-collapsed .toggle-sidebar::before {
    content: "\f053";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.sidebar-collapsed .toggle-sidebar {
    transform: rotate(180deg);
}

.sidebar-button.sidebar-patient .icon-circle { background-color: #17a2b9; }
.sidebar-button.sidebar-patient:hover .icon-circle { background-color: #1cbfd9; }

.sidebar-button.sidebar-monitors .icon-circle { background-color: #ea1a2f; }
.sidebar-button.sidebar-monitors:hover .icon-circle { background-color: #ff3d52; }

.sidebar-button.sidebar-airway .icon-circle { background-color: #007cfc; }
.sidebar-button.sidebar-airway:hover .icon-circle { background-color: #1a8dff; }

.sidebar-button.sidebar-breathing .icon-circle { background-color: #6b40c1; }
.sidebar-button.sidebar-breathing:hover .icon-circle { background-color: #8a5ce0; }

.sidebar-button.sidebar-drugs .icon-circle { background-color: #d837b5; }
.sidebar-button.sidebar-drugs:hover .icon-circle { background-color: #f254d1; }

.sidebar-button.sidebar-fluids .icon-circle { background-color: #23c99c; }
.sidebar-button.sidebar-fluids:hover .icon-circle { background-color: #34ebbe; }

.sidebar-button.sidebar-labs .icon-circle { background-color: #660ff1; }
.sidebar-button.sidebar-labs:hover .icon-circle { background-color: #8640ff; }

.sidebar-button.sidebar-surgeon .icon-circle { background-color: #f2872c; }
.sidebar-button.sidebar-surgeon:hover .icon-circle { background-color: #ff9942; }

.sidebar-button.sidebar-resuscitate .icon-circle { background-color: #a438d1; }
.sidebar-button.sidebar-resuscitate:hover .icon-circle { background-color: #b84ee5; }



/* hover info for collapsed sidebar */
.sidebar-button span {
    transition: opacity 0.3s ease;
}

.info-show {
    position: fixed;
    left: 6.51vw;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.90vw;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: var(--card-box-shadow);
    -moz-box-shadow: var(--card-box-shadow);
    -webkit-box-shadow: var(--card-box-shadow);
}

.info-show b {
    background: var(--accent-color4);
    color: var(--text-white);
    padding: 3px 7px;
    margin-right: 8px;
    border-radius: 5px;
    margin-left: -8px;
}

.sidebar.collapsed .sidebar-button:hover .info-show {
    opacity: 1;
    visibility: visible;
}

/* Shadow for the arrow */
.info-show::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent rgba(0, 0, 0, 0.1) transparent transparent;
    filter: blur(1px);
}

/* Actual arrow */
.info-show::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--bg-tertiary) transparent transparent;
}


/* Light theme styles */
.light-theme .my-account .icon-circle { background-color: #5bc0de; }
.light-theme .my-account:hover .icon-circle { background-color: #70d6f7; }

.
.light-theme .cases .icon-circle { background-color: #aaa; }
.light-theme .preop:hover .icon-circle { background-color: #bbb; }

.light-theme .preop .icon-circle { background-color: #5cb85c; }
.light-theme .preop:hover .icon-circle { background-color: #6ed36e; }

.light-theme .case-help .icon-circle { background-color: #5bc0de; }
.light-theme .case-help:hover .icon-circle { background-color: #70d6f7; }

.light-theme .case-log .icon-circle { background-color: #9370db; }
.light-theme .case-log:hover .icon-circle { background-color: #ab8ee6; }

.light-theme .new-case .icon-circle { background-color: #999; }
.light-theme .new-case:hover .icon-circle { background-color: #aaa; }


/* disabled sidebar */

.sidebar-button.disabled {
}

.sidebar-button.disabled span {
	color: #777;
}

.sidebar-button.disabled:hover .icon-circle {
	background-color: #777 !important;
}

.sidebar-button.disabled span.disabled-tooltip {
    display: none;
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 999;
}

.sidebar-button.disabled span.disabled-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.sidebar-button.disabled:hover span.disabled-tooltip {
    display: block;
}


/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.light-theme .sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Menus */
.menu {
    display: none;
    position: absolute;
    top: 8.63vh;
    right: 20px;
    padding: 10px;
    text-align: right;
	z-index: 999;
}

.menu a {
    color: var(--text-primary);
}
.menu li:hover a {
    color: var(--text-white);
}

.menu .my-account-menu {
    right: 77px;
    min-width: 120px;
    text-align: left;
    padding: 6px 0;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    box-shadow: var(--card-box-shadow);
    -moz-box-shadow: var(--card-box-shadow);
    -webkit-box-shadow: var(--card-box-shadow);
}

.light-theme .menu .my-account-menu {
    background-color: #e6e7e9;
}

.menu .my-account-menu.my-account-menu-left {
	position: absolute;
	right: 10px; /* left column // right: 281px; */
}

h3.settings-menu-title {
	margin: -6px 0 11px 0;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    text-align: center;
    padding: 10px;
    background: #59626b;
}
.light-theme h3.settings-menu-title {
    background: #d1d1d1;
}

/* new settings left menu toggles */
.menu ul li.theme-toggle, .menu ul li.loc-country, .menu ul li.help-item, .menu ul li.feedback-item {
  padding: 4px 15px;
}
.theme-toggle {
  gap: 17px;
}
#theme-toggle span {
    margin-left: -6px;
    margin-right: 0;
}

/* Override toggle-option background for theme toggle */
.menu ul li.theme-toggle, .menu ul li.loc-country, .menu ul li.help-item, .menu ul li.feedback-item {
  padding: 4px 15px;
}
.theme-toggle {
  gap: 17px !important;
}
#theme-toggle span {
    margin-left: -6px !important;
    margin-right: 0;
}

/* Override toggle-option background for theme toggle */
.theme-toggle .toggle-option {
	background-color: #777;
	border-radius: 4px;
	padding: 4px 10px 5px 10px;
	cursor: pointer;
	color: #fff;
	font-weight: 600;
	transition: background-color 0.3s, color 0.3s;
	user-select: none;
	border: none;
}

.light-theme .settings-toggles .toggle-option,
.light-theme .settings-toggles .toggle-option.us-color,
.light-theme .settings-toggles .toggle-option.iso-color {
	background-color: #aaa;
}

.light-theme .settings-toggles:hover i,
.light-theme .settings-toggles:hover span.label,
.light-theme .settings-toggles:hover span.session-text,
.light-theme .settings-toggles:hover span.status-text,
.light-theme .settings-toggles:hover {
	color: #333;
}

#theme-toggle.settings-toggles span {
	margin-left: -7px !important;
    margin-right: 1px;
}

.settings-toggles:hover {
	background: none !important;
}

.settings-toggles.session-toggle span.label {
	white-space: nowrap;
}

.settings-toggles .toggle-option:hover {
	background: var(--accent-color4);
}

/* Active toggle button style */
.theme-toggle .toggle-option.active {
	background-color: #3ebe74 !important;
	color: #fff;
	border-color: #3ebe74;
}

.colors-toggle {
	display: flex;
}
.us-color {
	padding: 5px 9px 4px 9px !important;
	border-radius: 4px;
	font-size: 14px;
}
.iso-color {
	padding: 5px 9px 4px 9px !important;
	border-radius: 4px;
	font-size: 14px;
	margin-left: -3px;
}
.flag-us {
    position: relative;
    width: 20px;
    height: 16px;
    background: repeating-linear-gradient(to bottom, #B22234 0px, #B22234 2.615px, /* red stripe height */ #FFFFFF 2.615px, #FFFFFF 5.23px /* white stripe height */);
    border-radius: 3px;
    display: inline-block !important;
    vertical-align: middle;
    margin-top: -4px;
}
.flag-us::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 9px;
	height: 7.7px;
	background-color: #3C3B6E;
	border-bottom-right-radius: 1px;
	z-index: 1;
}
.flag-eu {
	position: relative;
	width: 23px;
	height: 16px;
	background-color: #003399; /* EU blue */
    border: 1px solid #777;
    border-radius: 3px;
    display: inline-block !important;
    vertical-align: middle;
    margin-top: -2px;
}

/* Yellow dots */
.star {
	--star-size: 2px;
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--star-size);
	height: var(--star-size);
	background-color: #FFCC00; /* EU yellow */
	border-radius: 50%;
	/* No transform-origin needed here */
	transform: rotate(calc(var(--i) * 30deg)) translateY(-5px);
	margin: calc(-1 * var(--star-size) / 2);
}

/* Optional: fix icon size */
.sound-toggle i {
	width: 20px;
	text-align: center;
}

/* Status text */
.status-text {
	min-width: 24px;
}

/* Toggle switch container */
.sound-toggle-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	cursor: pointer;
}

/* Hide default checkbox */
.sound-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

/* The slider track */
.sound-toggle-switch .slider {
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
	background-color: #ccc;
	border-radius: 20px;
	transition: background-color 0.3s;
}

/* The slider knob */
.sound-toggle-switch .slider::before {
	content: "";
	position: absolute;
	height: 16px;
	width: 16px;
	left: 2px;
	top: 2px;
	background-color: white;
	border-radius: 50%;
	transition: transform 0.3s;
}

/* Checked state */
.sound-toggle-switch input:checked + .slider {
	background-color: #4caf50;
}

.sound-toggle-switch input:checked + .slider::before {
	transform: translateX(16px);
}

/* photo toggle */

.photo-toggle i {
	width: 20px;
	text-align: center;
}

.label {
	min-width: 52px;
}

/* Container for toggle buttons */
.toggle-options {
	display: flex;
	gap: 8px;
}

/* Base style for toggle buttons */
.toggle-option {
	background-color: #777;
	border-radius: 4px;
	padding: 4px 11px 5px 11px;
	cursor: pointer;
	color: #fff;
	font-weight: 600;
	transition: background-color 0.3s, color 0.3s;
	user-select: none;
	border: none;
}

/* Active toggle button style */
.toggle-option.active {
	background-color: #3ebe74 !important;
	color: #fff;
	border-color: #3ebe74;
}

.light-theme .settings-toggles:hover {
	color: #fff;
}

/* end settings left menu toggles */

.menu * {
    user-select: none;
}

.menu hr {
    margin: 6px 0;
	height: 0;
    border-top: 1px solid #111;
    border-bottom: 1px solid #777;
    opacity: 0.4;
}

.light-theme .menu hr {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #aaa;
    opacity: 0.6;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    cursor: pointer;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.menu ul li label,
.menu ul li .label {
	cursor: pointer;
}

.menu ul li.my-settings-btn.view-my-cases:hover {
    background-color: var(--accent-color8);
}
.menu ul li.my-settings-btn:hover,
.menu ul li.admin-dash-btn:hover,
.menu ul li.change-profile-picture:hover,
.menu ul li.logout:hover {
    background-color: var(--accent-color3);
    color: var(--text-white);
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

.menu ul li.my-profile-menu-title {
    background-color: var(--accent-color9);
	text-align: center;
    float: none;
    display: block;
    margin-top: -7px;
    margin-bottom: 7px;
}

.menu ul li.my-profile-menu-title:hover {
	cursor: default;
    background-color: var(--accent-color9);
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}
.light-theme .menu ul li.my-profile-menu-title:hover {
	cursor: default;
    background-color: var(--accent-color9);
	color: #000;
}

.menu ul li.theme-toggle:hover,
.menu ul li.sound-toggle:hover,
.menu ul li.session-toggle:hover {
    background-color: var(--accent-color4);
    color: var(--text-white);
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
}
,
.menu ul li.loc-country:hover {
    /* background-color: var(--accent-color4); */
    color: var(--text-white);
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
}

.menu ul li.help-item:hover,
.menu ul li.feedback-item:hover {
    background-color: var(--accent-color7);
    color: var(--text-white);
}

.menu ul li i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.menu ul li:hover i {
    color: var(--text-white);
}

.menu ul li.just-info:hover {
    cursor: text;
    background: transparent;
}

.just-info-outer {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  margin: 10px 15px 15px 15px;
  padding: 10px 0
}

.just-info-outer a {
    color: var(--text-primary);
	text-align: center;
}

.light-theme .just-info-outer {
    background: rgba(200,200,200,0.4);
}

.light-theme .menu ul li.just-info:hover {
    color: var(--text-primary);
}


.just-info-outer li.just-info {
	text-align: center;
	display: block;
}

.menu ul li.pro-button a {
	text-align: center;
	display: block;
	color: #fff;
}

.menu ul li.pro-button,
.light-theme .menu ul li.pro-button {
	background-color: var(--accent-color4);
	color: #fff;
    margin-top: 10px;
    margin-bottom: -10px;
    padding-top: 14px;
    padding-bottom: 15px;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
	display: block;
}
.menu ul li.pro-button:hover {
	background-color: var(--accent-color4-hover) !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.menu ul li:hover{
    background-color: var(--accent-color3);
    color: var(--text-white);
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
}

.menu ul li.theme-toggle,
.menu ul li.loc-country,
.menu ul li.help-item,
.menu ul li.feedback-item {
    background-color: transparent;
    border-radius: 0;
    margin-top: 0;
    padding: 8px 15px;
}

/* Text label styles */
.menu ul li label,
.menu ul li .label {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-right: 4px;
}

.menu ul li:hover label,
.menu ul li:hover .label {
    color: var(--text-white);
}

/* Country toggle specific styles */
.light-theme .menu ul li.loc-country:hover i,
.light-theme .menu ul li.loc-country:hover label,
.light-theme .menu ul li.loc-country:hover .label {
	color: var(--text-secondary);
}
.menu ul li.loc-country.active i {
    color: var(--accent-color4);
}

.menu ul li.loc-country.active {
    background-color: rgba(255,255,255,0.1);
}

.pro-only,
.demo-user {
    color: #999;
	cursor: pointer;
}

/* menu info tags */

.menu li span.info-tag {
  display: none; 
}

.menu li .info-mark:hover span.info-tag {
  display: inline-block;
  position: absolute;
  top: -7px;
  right: 3.25vw;
  white-space: nowrap;
  background: #888;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.90vw;
}

span.info-mark {
    position: absolute;
    display: block;
    border: 1.5px solid #aaa;
    border-radius: 50%;
    padding: 1px 3px 8px 3px;
    width: 13px;
    height: 10px;
    margin-top: -1.37vw;
    margin-left: -2.28vw;
    font-size: 0.77vw;
    float: right;
  /* hide the mark for now */
    display: none;
}
.fa-info {
    color: #aaa;
    margin-right: 4px;
    text-align: center;
    position: relative;
}

.menu li:hover span.info-mark {
    border-color: var(--text-primary); 
}
.menu li:hover .fa-info {
    color: #fff;  
}

.menu li {
    padding-left: 2.93vw;
}
.menu li.theme-toggle {
    padding-left: inherit;
}

/* menu text overflow and copy */
.just-info {
    width: 200px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.just-info.user-type-menu {
	display: block !important;
}

.text-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.inner-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-wrapper:hover .inner-text.overflow::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: max-content;
    height: 100%;
    padding-left: 100%;
    white-space: nowrap;
    animation: marquee 10s linear infinite;
}
/* .text-wrapper-email {
    padding-right: 20px;
} */

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}
.copy-icon {
    cursor: pointer !important;
    color: #777 !important;
    font-size: 14px !important;
    padding: 2px !important;
    /* position: absolute;
    right: 20px; */
}
.copy-icon:hover {
    color: #fff !important;
}

/* .copy-icon-email {
	float: right;
    margin-top: -20px;
    position: relative;
	z-index: 2;
} */

/* Theme Toggle */
#theme-toggle {
    cursor: pointer;
    display: flex;
    justify-content: left;
    align-items: center;
    text-align: center;
}

#theme-toggle i {
    /* margin-right: 10px; */
}
#theme-toggle span {
	margin-left: -3px;
}
.menu ul li.pro-button:hover,
.menu li#theme-toggle:hover {
    background-color: var(--accent-color4);
}

/* hide inactive menu items */
.menu-hidden {
	display: none !important;
}



.mainContentSection {
    margin-left: 12.2vw; 
}

.mainContentSection.sidebar-collapsed {
    margin-left: 5.86vw;
}

.content {
    height: 78.42vh; 
    margin-left: 12.2vw; /
    background: var(--bg-secondary);
    transition: margin-left 0.3s ease;
}

.content.sidebar-collapsed {
    margin-left: 5.86vw;
}

/* Footer */
.copyright {
    color: var(--text-secondary);
    text-align: center;
    padding: 0.72vh 0 0 0; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 0.77vw;
	z-index: 2;
}

.site-tag {
    position: absolute;
    left: 0.65vw; 
    bottom: 1.58vh;  
}

.dev-tag {
    position: absolute;
    right: 0.65vw; 
    bottom: 1.58vh;  
}

.footer-menu {
    padding: 1.15vh 0.65vw; 
    background-color: var(--bg-content); 
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-bottom-left-radius: 0;
    -moz-border-bottom-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    -moz-border-bottom-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
}

@media screen and (max-width: 930px) {
	.copyright {
		min-width: 990px;
		overflow: hidden;  
	}
	.dev-tag {
		display: none;
	}
}

.copyright,
.copyright a {
    font-size: 0.77vw; 
}

.footer-menu a {
    margin: 0;
    padding: 0.72vh 0.65vw; 
    font-size: 0.77vw; 
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.footer-menu a:hover {
    background-color: var(--accent-color3);
    color: var(--text-white);
}

#profilePictureModal {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
#profilePictureModal .modal-content {
    max-width: 320px;
    background: rgba(50,50,50,0.8);
    margin: 10vw auto;
    padding: 2.88vh 2.60vw;
    border-radius: 20px;
    border: 3px solid #444;
}
#profilePictureModal .modal-content .close {
    position: relative;
    float: right;
    margin: -21px -36px 0 0;
    background: #626262;
    font-weight: bold;
    font-size: 23px;
    padding: 1px 9px 0 8px;
    border-radius: 5px;
    border-top-right-radius: 20px;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
    cursor: pointer;
}
#profilePictureModal .modal-content .close:hover {
    background: #818080;
}

.my-account .profile-picture-container img {
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: cover;
    border-radius: 50%;
}


/* edit modal */
	.modal {
		position: fixed;
		z-index: 1;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		overflow: auto;
		background-color: rgba(0,0,0,0.4);
		z-index: 99;
	}
	
	.modal h2 {
		margin-top: 0;
		color: #fff;
	}
	
	.light-theme .modal h2 {
		color: #000;
	}

	.modal-content {
		background-color: var(--topbar-primary);
		margin: 87px auto;
		padding: 20px;
		border-radius: 15px;
		-moz-border-radius: 15px;
		-webkit-border-radius: 15px;
		width: 95%;
		max-width: 500px;
		box-shadow: var(--card-box-shadow);
		-moz-box-shadow: var(--card-box-shadow);
		-webkit-box-shadow: var(--card-box-shadow);
	}
	
	#upgradeModal .modal-content,
	#demoModal .modal-content,
	#proStatusModal .modal-content {
		background-color: rgb(47 76 135 / 95%);
	}
	
	.light-theme #upgradeModal .modal-content,
	.light-theme #demoModal .modal-content,
	.light-theme #proStatusModal .modal-content {
		background-color: rgb(225 235 255 / 95%);
	}
	
	#upgradeModal .modal-content button,
	#demoModal .modal-content button,
	#proStatusModal .modal-content button {	
		padding: 15px 50px;
		border-radius: 7px;
		font-weight: bold;
		white-space: nowrap;
		margin: 10px 10px 10px 20px;
		font-size: 1.10vw;
		color: #fff;
		border: none;
		cursor: pointer;
	}
	
	#upgradeModal .modal-content #upgradeYes,
	#demoModal .modal-content #demoUpgradeYes,
	#proStatusModal .modal-content .upgradeYes {	
	    background: #629948;
	}
	
	#upgradeModal .modal-content #upgradeNo,
	#demoModal .modal-content #demoUpgradeNo,
	#proStatusModal .modal-content .upgradeNo {	
	    background: #707070;
	}
	
	#upgradeModal .modal-content #upgradeYes:hover,
	#demoModal .modal-content #demoUpgradeYes:hover,
	#proStatusModal .modal-content .upgradeYes:hover {	
	    background: #6cb24a;
	}
	
	#upgradeModal .modal-content #upgradeNo:hover,
	#demoModal .modal-content #demoUpgradeNo:hover,
	#proStatusModal .modal-content .upgradeNo:hover {	
	    background: #7b7b7b;
	}
	
	.status-pro {
	}

	.status-expired {
	}
	
	.modal label,
	.modal .label {
		color: #d6e0f8;
	}

	.modal .modal-static {
		background-color: #3d486b;
		border: 2px solid var(--topbar-secondary-border);
		color: var(--text-primary);
		padding: 10px 15px;
		border-radius: 5px;
		font-size: 1.03vw;
		font-family: 'Arial', sans-serif;
		outline: none;
		width: 100%;
		box-sizing: border-box;
		transition: all 0.3s ease;
	}
	.light-theme .modal .modal-static {
		background-color: #7b87ac;
	}
	.light-theme.modal label,
	.light-theme.modal .label {
		color: #e8ebff;
	}
	
	.modal input,
	.modal textarea,
	.modal select,
	.modal .modal-static {
		margin-bottom: 10px;
		display: block;
		border: none;
	}
	
	.modal .close {
		color: #aaa;
		float: right;
		font-size: 1.80vw;
		font-weight: bold;
	}

	.modal .close:hover,
	.modal .close:focus {
		color: var(--text-primary);
		text-decoration: none;
		cursor: pointer;
	}

/* settings page */

.settings-switch {
    max-width: 800px;
    margin: 50px auto 0 auto;
}
.settings-switch .view-settings,
.settings-switch .view-cases,
.settings-switch .change-settings {
    width: 50%;
    display: inline;
    padding: 10px 50px; 
}
.settings-switch .view-settings.settings-active,
.settings-switch .view-cases.settings-active,
.settings-switch .change-settings.settings-active {
    background: #007cfc;
}
.settings-switch .view-settings:hover,
.settings-switch .view-cases:hover,
.settings-switch .change-settings:hover {
	background: #228dfd;
}

.user-settings {
    position: relative;
    max-width: 800px;
    margin: 30px auto 120px auto;
}

.user-settings-top #changeProfilePicture,
.user-settings-top #removeProfilePicture {
    margin-left: 15px;
    margin-top: 20px;
    padding: 8px 12px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.user-settings-top #changeProfileName {
    padding: 8px 12px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border: none;
	font-size: 13px;
}

.user-settings-top #changeProfilePicture,
.user-settings-top #changeProfileName {
    background: #8b60d0;
}

.user-settings-top #changeProfilePicture:hover,
.user-settings-top #changeProfileName:hover {
    background: #9b72dd;
}

.user-settings-top #removeProfilePicture {
    background: #bb5ba6;
}

.user-settings-top #removeProfilePicture:hover {
    background: #d877c3;
}

.user-settings-container input {
	position: relative;
    max-width: 100%;
    display: block;
    height: 30px;
    font-size: 16px;
    padding-left: 10px;
	margin-bottom: 10px;
}

.user-settings-container button {
	font-size: 16px;
    padding: 5px 15px;
    margin: 0 10px 0 0;
	color: #fff;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
	min-width: 82px;
}

.user-settings-container button#cancelNameButton {
	background: #d13d7c;
}

.user-settings-container button#cancelNameButton:hover {
	background: #e85292;
}

.user-settings-container button[type="submit"] {
    background: #1ea90c;
}

.user-settings-container button[type="submit"]:hover {
	background: #35c522;
}

.user-settings h2 {
  font-size: 1.80vw;
}

.user-settings-container {
    position: relative;
    max-width: 45%;
    float: left;
    margin-right: 100px;
    margin-bottom: 30px;
}

.user-settings .profile-picture-container {
    position: relative;
    width: 45%;
    float: left;
}

.user-settings .profile-picture-container img {
    max-width: 200px;
    max-height: 200px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

/* switch */
.view-settings,
.view-cases,
.back-to-cases,
.change-settings {
    display: inline-block;
    padding: 5px 10px;
    background-color: #777;
    color: white;
    cursor: pointer;
    margin-right: 10px;
    border-radius: 5px;
}

.back-to-cases {
    background-color: #007cfc;
	font-size: 1.10vw;
    border: none;
    position: absolute;
    margin-top: -59px;
    right: 5%;
}

.user-settings {
    display: block;
}

.user-settings-container p strong {
    color: #03a9f4;
}

.user-settings-bottom {
    display: none;
    margin-top: 50px;
}


.user-settings-bottom button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
}

.user-settings-bottom h2 {
    font-size: 1.80vw;
    color: #72b7ff;
}

/* settings edit form */

.settings-edit-form {
  max-width: 800px;
  margin: 0 auto;
}

.settings-edit-form div {
  width: 100%;
  margin: 15px 0;
}
.settings-edit-form div input {
  border-radius: 5px;
  padding: 5px;
}

/* ---- cases list ------------ */

.user-cases {
	width: 100%;
	margin-top: 30px;
}

.home-table {
	max-width: 95%;
}

.home-table th {
	background: #007cfc;
	color: #fff;
}

.home-table td {
	text-align: center;
}

#cases-list {
	margin-bottom: 120px;
}

#cases-list .home-table th {
	max-width: 250px;
	padding: 10px;
}

#cases-list .home-table td {
	max-width: 250px;
	
}

.home-table td:first-child {
	text-align: left;
}

/* view case */
.instructor-comments {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.instructor-comments h3 {
    margin-top: 0;
    color: #333;
}

.case-details-table {
    width: 95%;
    border-collapse: collapse;
    margin-bottom: 12.95vh; 
}

.case-details-table th,
.case-details-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    min-width: 7.16vw; 
}

.case-details-table th {
    background-color: rgba(100,100,100,0.1);
    font-weight: bold;
	color: #fff;
}

.case-details-table tr:nth-child(even) {
    background-color: rgba(100,100,100,0.2);
}
.case-details-table tr td:first-child {
    background: #007cfc;
	color: #fff;
}
.case-details-table tr:last-child td:first-child {
    background: #777;
}

.case-details-table .button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.case-details-table .button:hover {
    background-color: #0056b3;
}

.case-details-table.instructor-notes-table {
    margin-bottom: 27px;
}
	
.case-details-table.instructor-notes-table td:first-child {
	background: #007cfc !important;
    color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    width: 144px;
}

/* scrollbars */

/* main content track */
#divDisplayContent::-webkit-scrollbar {
    width: 17px !important;
}
#divDisplayContent::-webkit-scrollbar-track {
    background: #cfcfcf !important;
    border-radius: 5px;
}

/* main content handle */
#divDisplayContent::-webkit-scrollbar-thumb {
    background: #35a5b8 !important;
    max-height: 14.39vh; 
    border-radius: 5px;
}
#divDisplayContent::-webkit-scrollbar-thumb:hover {
    background: #61c1d1 !important;
    cursor: pointer !important;
}

/* screen track */
.screen-content::-webkit-scrollbar {
    width: 10px;
}
.screen-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.screen-content::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.screen-content::-webkit-scrollbar-thumb {
    background: #35a5b8 !important;
    max-height: 14.39vh; 
    border-radius: 5px;
}
.screen-content::-webkit-scrollbar-thumb:hover {
    background: #61c1d1 !important;
    cursor: pointer !important;
}

/* hide/set body scrollbar style */
body::-webkit-scrollbar {
    width: 0px;
}
body::-webkit-scrollbar-track {
    background: #333;
    border-radius: 5px;
}

/* handle */
body::-webkit-scrollbar-thumb {
    background: #ccc;
    max-height: 14.39vh; 
    border-radius: 5px;
}
body::-webkit-scrollbar-thumb:hover {
    background: #61c1d1;
    cursor: pointer;
}


/* pages */
.page-content {
    max-width: 800px;    
    padding: 30px 50px 50px;
    background: rgba(100,100,100,0.3);  
    margin: 50px auto 0 auto;
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
}

.page-content li {
    margin-bottom: 12px;    
}


.page-content span.pro-button {
    background: none;
    border: none;
}

.page-content span.pro-button a {
    background: var(--accent-color4);
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 7px;
    margin-top: 7px;
    color: #fff;
    padding: 12px 50px;
    margin-top: 10px;
    display: inline-block;
    font-size: 1.29vw;
    margin-left: 20px;
}
.page-content span.pro-button a:hover {
    filter: brightness(120%);
}

.page-content span.pro-button a:hover{
    color: var(--text-white);
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    cursor: pointer;
}

.pro-disabled {
    color: #888;
    /* background-color: #f0f0f0; */
}

/* login page */

.login {
    position: relative;
    top: 10%;
    background-color: #333;
    border: none; 
	margin: 100px auto 0 auto;
	max-width: 264px;
    padding: 10px 15px 23px 15px;
    -moz-box-shadow: 3px 3px 5px 6px #111;
    -webkit-box-shadow: 3px 3px 5px 6px #111;
    box-shadow: 3px 3px 5px 6px #111;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}
.login h1 {
    font: bold 20px arial;
    padding-top: 25px;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 1px 1px 3px #111;
}
.login h2 {
    font: bold 1.94vw arial; 
    padding-top: 15px;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 3px #111;
}
.login .link {
    padding: 36px 59px 42px 8px;
	margin: 0 !important;
}
.login .link a {
    font: bold 13px Arial;
    color: #777;
	white-space: nowrap;
}
.login .link a:hover {
    color: #fff;
}
#login {
    font-weight: bold;
}
.login .login-logo {
	max-width: 210px;
    margin-bottom: -5px;
    margin-top: 14px;
}
.login tr td {
   /* border-bottom: 1px solid #D5D5D5;*/
    line-height: 34px;
    font-size: 14px;
    text-align: right;
    padding: 0 5px;
}
.login tr td input {
    min-width: 210px;
    min-height: 22px;
	padding: 10px 10px 8px 10px;
	margin: 5px;
	font-size: 15px;
	border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
}
.login .box {
    background: #222;
    border: none;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 20px;
    margin: 10px 10px;
}
.login button {
    width: 232px;
    font: 19px arial;
    background: #64a564;
    color: #fff;
    border: none;
    margin-top: 12px;
    margin-left: 8px;
    padding: 10px;
    float: left;
    border-radius: 5px6
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.login button:hover {
    background: #7dc47d;
    cursor: pointer;
}
.login .light-text {
    font: bold 13px Arial;
    color: #fff;
}
.login #enter-text {
    margin-top: 14px;
    text-align: center;
    margin-bottom: 20px;
}
.login #email-table {
    margin: 0 auto;
}
.login #login-link {
    margin-top: -3.88vh;
    padding-bottom: 6.76vh;
    margin-right: 15px;
    position: absolute;
    right: 15px;
}
.login #login-link a {
    font: bold 13px Arial;
    color: #777;
}
.login #login-link a:hover {
    color: #000;
}
.login.register {
    max-width: 500px;
	margin: 50px auto 100px auto;
	padding: 10px 15px 57px 15px;
}
.register h1 {
    margin: 0 0 29px 0;
}
.register tr { 
	float: left;
}
.register select {
	background-color: #555;
    width: 100%;
    margin-bottom: 10px;
}
.register select:hover {
	background-color: #666;
}
.login.register button.submit-reg {
    width: calc(100% - 18px);
}
.login.register #login-link a {
	margin: 100px 0 0 -121px;
    position: absolute;
    white-space: nowrap;
}
.login.register #login-link a:hover {
	color: #fff;
}
.dashboard{
    padding: 60px;
}

.dashboard tr td a{
    color: #000;
	text-decoration: none;
}
.dashboard th{
    text-align:  left
}
.dashboard tr{
    text-align: right;
    
}
.red{
    color: red;
    margin: 17px 0 10px 0;
}
.error{
    font-size:12px;
}

.image_none,.green_none{
    display: none;
}
.image_show,.green_show{
    display: inline;
}
.green{
    color:green;
}

/* ---- dropdown menus ---- */

select {
    appearance: none;
    width: 100%; 
    padding: 1.44vh 0.98vw;   
    border: 2px solid #23272a;
    border-radius: 5px;
    font-size: 1.03vw;         
    font-family: 'Arial', sans-serif;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    background-color: var(--topbar-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

select:hover, 
select:focus {
    background-color: var(--topbar-secondary);
    border-color: #7289da;
}

select option {
    background-color: #444;
    color: var(--text-primary);
    padding: 10px;
    font-size: 16px;
    margin: 10px 0;
}

.light-theme select {
    border: 2px solid #ddd;
}

.light-theme select:hover, 
.light-theme select:focus {
    border-color: #ddd;
}

.light-theme select option {
    background-color: #ddd;
}


.light-theme select option:hover {
    background-color: #ddd;
}

/* MAIN CONTENT AREA */

.displayCaseActive #divDisplayContent {
    background-color: #1f2227;
}

.light-theme .displayCaseActive #divDisplayContent {
    /* background-color: var(--bg-content); */
	background-color: #fcfcfc;
    border: 4px solid #ddd;
}

#divDisplayContent {
    height: 85%;  
	width: 98%;
    margin: 0px;
    font-size: 0.90vw;
	overflow-y: auto; 
	border-radius: 15px;
	-moz-border-radius: 15px;
	-webkit-border-radius: 15px;
    padding: 10px 0 0 10px;
}

.light-theme #divDisplayContent {
    background: #e1e1e1;
}


#divDisplayContent select {
    background: var(--content-div-select);
}


/* ---------case selection ----------------- */

#imgSplash {
	height: 38.5vh; 
	width: 48.0vw; 
	z-index: 20;
}

#divSelectCase {
	margin-top: -34vh;
	margin-left: 2vw;
	z-index: 10;
}

#caseList {
    width: 38%; 
}

#caseList option:disabled {
    color: gray;
    font-style: italic;
}


.showCasesList,
#showCasesList,
.light-theme .showCasesList,
.light-theme #showCasesList {
	display: none !important; /* hide on preference */
}

#showCasesList {
    position: absolute;
    width: 1.56vw;
    height: 3.88vh;
    margin-top: -5.75vh;
    margin-left: 5px;
    padding: 5px 0 0 8px;
    background: #3f434b;
    cursor: pointer;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -moz-border-radius: 50%;
}

.light-theme #showCasesList {
    background: #e1e1e1;
}

#txtCaseTitle {
	display: block;
	margin: 10px 0 10px 1.56vw;
    padding-top: 3px;
	border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	color: #a9fbc0;
    font-weight: bold;
	font-size: 1.29vw;
}
.light-theme #txtCaseTitle {
	color: #0cb43b;
}

#preopScroller > div {
  padding-bottom: 21.51vh; /* allow overscroll */
}

/* hide title icon, unhide for icon */
#preopScroller .fa-user-md:nth-child(1) {
  display: none;
}

#preopScroller [class^="preop-title-"] {
  margin-left: 12px;
  font-weight: bolder;
  font-family: Arial, sans-serif;
  font-size: 1.10vw;
  color: #93c5d4;
  color: #6ddef1;
}

#preopScroller .preop-main-title {
  font-weight: bold;
  font-size: 0.96vw;
  text-align: center;
  display: block;
  margin: 0 auto 20px auto;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
  /* hide as duplicate title */
  display: none;  
}

#preopScroller .fas {
  font-size: 1.29vw;
  width: 20px;
  text-align: center;
}

  
#preopScroller .preop-title-history {
  color: #bdc3ff;
}
#preopScroller .fas.fa-clock {
  color: #bdc3ff;
}
  
#preopScroller .preop-title-medical {
  color: #f4b3b6;
}
  
#preopScroller .fas.fa-notes-medical,
#preopScroller .fas.fa-heartbeat {
  color: #f4b3b6;
}
  
#preopScroller .preop-title-family {
  color: #a5f5c6;
}
  
#preopScroller .fas.fa-users {
  color: #a5f5c6;
}
  
#preopScroller .preop-title-physical {
  color: #99ddf2;
}
  
#preopScroller .fas.fa-stethoscope {
  color: #99ddf2;
}
  
#preopScroller .preop-title-labs {
  color: #c7a1ff;
}
  
#preopScroller .fas.fa-vial {
  color: #c7a1ff;
}
  
#preopScroller .preop-title-status {
  color: #bdc3ff;
}
  
#preopScroller .fas.fa-utensils {
  color: #bdc3ff;
}
  
#preopScroller .preop-title-surgeon {
  color: #f4b3b6;
}
  
#preopScroller .fas.fa-user-md {
  color: #f4b3b6;
}
  
#preopScroller .preop-content {
  font-weight: normal;
  font-size: 0.90vw;
  margin: 1px 0 20px 39px;
  display: block;
  line-height: 3.17vh;
  font-size: 0.96vw;
}

#preopScroller .preop-content b {
    color: #a9fbc0;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* preop light theme */


.light-theme #preopScroller .preop-content b {
	color: #28d054;
}
  
.light-theme #preopScroller .preop-title-history {
  color: #6f78d3;
}

.light-theme #preopScroller .fas.fa-clock {
  color: #6f78d3;
}
  
.light-theme #preopScroller .preop-title-medical {
  color: #d686a2;
}
  
.light-theme #preopScroller .fas.fa-notes-medical,
.light-theme #preopScroller .fas.fa-heartbeat {
  color: #d686a2;
}
  
.light-theme #preopScroller .preop-title-family {
  color: #30bc6a;
}
  
.light-theme #preopScroller .fas.fa-users {
  color: #30bc6a;
}
  
.light-theme #preopScroller .preop-title-physical {
  color: #50cbeb;
}
  
.light-theme #preopScroller .fas.fa-stethoscope {
  color: #50cbeb;
}
  
.light-theme #preopScroller .preop-title-labs {
  color: #b583ff;
}
  
.light-theme #preopScroller .fas.fa-vial {
  color: #b583ff;
}
  
.light-theme #preopScroller .preop-title-status {
  color: #6f78d3;
}
  
.light-theme #preopScroller .fas.fa-utensils {
  color: #6f78d3;
}
  
.light-theme #preopScroller .preop-title-surgeon {
  color: #d686a2;
}
  
.light-theme #preopScroller .fas.fa-user-md {
  color: #d686a2;
}


/* -------- monitor ------------------------- */

.monitor-container {
	height: 74.72vh;   
    width: 35vw;  
    margin: 1.44vh 0px 0px 0.65vw;  
    padding: var(--frame-padding);
    --frame-color: #333;
    --frame-light: #444;
    --frame-dark: #222;
    --frame-darker: #242424;
    --frame-darkest: #1e1e1e;
    --frame-edge: #3a3a3a;
    --screen-color: #000;
    --screen-glow: #fff;
    --aspect-ratio: 16 / 9;
    --frame-width: 1.5vmin;
    --frame-padding: 1.5vmin;
    --bevel-width: calc(var(--frame-width) / 2);
    aspect-ratio: var(--aspect-ratio);
    position: relative;
	background-color: var(--frame-color);
    border-radius: 1.5vmin;
    box-shadow: 0 0 2vmin rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    float: left;
}

.monitor-frame {
    position: relative;
    height: 100%;
    background-color: var(--screen-color);
    border-radius: 0.25vmin;
    overflow: hidden;
}

.bevel {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bevel::before,
.bevel::after,
.bevel-left,
.bevel-top,
.bevel-corner-bl,
.bevel-corner-br,
.bevel-corner-tr,
.bevel-corner-tl {
    content: '';
    position: absolute;
    background-color: var(--frame-color);
}

.bevel::before {
    right: var(--bevel-width);
    bottom: 0;
    left: var(--bevel-width);
    height: var(--bevel-width);
    background: linear-gradient(to top, var(--frame-light), var(--frame-color));
}

.bevel::after {
    right: 0;
    top: var(--bevel-width);
    bottom: var(--bevel-width);
    width: var(--bevel-width);
    background: linear-gradient(to left, var(--frame-light), var(--frame-color));
}

.bevel-left {
    left: 0;
    top: var(--bevel-width);
    bottom: var(--bevel-width);
    width: var(--bevel-width);
    background: linear-gradient(to right, var(--frame-darker), var(--frame-darkest));
}

.bevel-top {
    top: 0;
    right: var(--bevel-width);
    left: var(--bevel-width);
    height: var(--bevel-width);
    background: linear-gradient(to bottom, var(--frame-darker), var(--frame-darkest));
}

.bevel-corner-bl {
    left: 0;
    bottom: 0;
    width: var(--bevel-width);
    height: var(--bevel-width);
    background: 
linear-gradient(135deg, var(--frame-darker) 49%, transparent 51%),
linear-gradient(to top, var(--frame-light), var(--frame-color));
}

.bevel-corner-br {
    right: 0;
    bottom: 0;
    width: var(--bevel-width);
    height: var(--bevel-width);
    background: 
linear-gradient(-135deg, var(--frame-light) 48%, var(--frame-edge) 48%, var(--frame-edge) 52%, transparent 52%),
linear-gradient(to top, var(--frame-light), var(--frame-color));
}

.bevel-corner-tr {
    right: 0;
    top: 0;
    width: var(--bevel-width);
    height: var(--bevel-width);
    background: 
linear-gradient(-45deg, var(--frame-light) 49%, transparent 51%),
linear-gradient(to bottom, var(--frame-darker), var(--frame-darkest));
}

.bevel-corner-tl {
    left: 0;
    top: 0;
    width: var(--bevel-width);
    height: var(--bevel-width);
    background: linear-gradient(45deg, var(--frame-darker) 50%, var(--frame-darkest) 50%);
}

/* Light theme */
.light-theme .monitor-container {
    --frame-color: #ccc;
    --frame-light: #ddd;
    --frame-dark: #aaa;
    --frame-darker: #bbb;
    --frame-darkest: #999;
    --frame-edge: #cacaca;
    --screen-color: #f0f0f0;
    --screen-glow: #bebebe;
}

.light-theme .screen-content {
	font-weight: bold;
}

.light-theme .monitor-container .screen-effect {
    background: 
radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0) 70%),
repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 3px);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.1);
}

.light-theme .monitor-container .scanline {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%; /* Ensure the scanline covers the entire container */
	background: linear-gradient(to bottom, 
transparent 0%,
rgba(0, 0, 0, 0.02) 10%,
rgba(0, 0, 0, 0.04) 50%,
rgba(0, 0, 0, 0.02) 90%,
transparent 100%);
	animation: scanline 5s infinite linear; /* Adjust duration for speed */
}

.light-theme .monitor-container .bevel-left {
    background: linear-gradient(to right, var(--frame-dark), var(--frame-color));
}

.light-theme .monitor-container .bevel-top {
    background: linear-gradient(to bottom, var(--frame-dark), var(--frame-color));
}

.light-theme .monitor-container .bevel-corner-bl {
    background: 
linear-gradient(135deg, var(--frame-dark) 49%, transparent 51%),
linear-gradient(to top, var(--frame-light), var(--frame-color));
}

.light-theme .monitor-container .bevel-corner-br {
    background: 
linear-gradient(-135deg, var(--frame-light) 48%, var(--frame-edge) 48%, var(--frame-edge) 52%, transparent 52%),
linear-gradient(to top, var(--frame-light), var(--frame-color));
}

.light-theme .monitor-container .bevel-corner-tr {
    background: 
linear-gradient(-45deg, var(--frame-light) 49%, transparent 51%),
linear-gradient(to bottom, var(--frame-dark), var(--frame-color));
}

.light-theme .monitor-container .bevel-corner-tl {
    background: 
linear-gradient(45deg, var(--frame-dark) 49%, transparent 51%),
linear-gradient(to bottom, var(--frame-dark), var(--frame-color));
}



/* ---  monitor screen content ------------ */

.screen-content {
    position: absolute;
	padding: 0.72vh 0 0.72vh 0.33vw; 
    inset: var(--bevel-width);
    display: flex;
    font-family: "Courier New", monospace;
    font-size: 4.0vmin; 
    color: var(--screen-glow);
    text-shadow: 0 0 5px var(--screen-glow);
/*     animation: textFlicker 1s infinite; */
	overflow-y: auto;
    overflow-x: hidden;
}


#divLeftMonitor {
    float: left;   
    width: 9.63vw;   
}

#fieldsetEcg {
    float: left;
    height:  15%;
    width: 7.75vw;  
    padding-top: 1.44vh;  
    border-radius: 4px;
    font-size: 0.90vw; 
}

#txtHr {
    float: right;
	margin: 1.15vh 0.52vw 1.15vh 0; 
	padding: 0;
    font-size: 1.68vw;  
    color: var(--text-primary);
}

#txtII {
	margin: 3.45vh 0.26vw 0 0; 
    font-size: 0.84vw;  
    color: var(--text-primary);
}

#txtV5 {
	margin: 0.57vh 0.26vw 0 0; 
    font-size: 0.84vw;  
    color: var(--text-primary);
}

#fieldsetP1 {
    width: 7.75vw;  
    height: 13%; 
    margin-top: 0.57vh;
    padding-top: 0.86vh; 
    border-radius: 6px;
    font-size: 0.90vw; 
}

#txtS-D {
    float: right;
	margin: 0 0 0.52vh 0;
    font-size: 1.29vw; 
}

#txtM {
    float: right;
    font-size: 1.03vw;
}

#pMean {
    clear: right;
    float: right; 
	margin: 0;
    font-size: 1.16vw;
}

#btnGo {
    width: 22%;
    height: 3.45vh;
	display: block;
    margin: 0 0 1.15vh 2px;
    border-radius: 4px;
    font-size: 0.77vw;
    text-align: center;
    background: var(--content-div-button);
    color: var(--text-white);
    border: none;
}

#txtMin {
    font-size: 0.84vw;
}

#txtP1single {
    float: right;
    padding-left: 0.78vw; 
    font-size: 1.68vw;
}

#fieldsetSpo2 {
    float: left;
    width: 7.75vw;  
    height: 10%;
    margin-top: 0.57vh;
    padding-top: 0.86vh;
    border-radius: 4px;
    color: #5ab9ef; 
    font-size: 0.90vw; 
}

#txtSpo2Sat {
    float: right;
    font-size: 1.68vw;
}

#txtSpo2Hr {
    margin-top: 1.72vh; 
    margin-bottom: 0.57vh;
    font-size: 0.90vw;
}

#txtSpo2signal {
    font-size: 1.16vw;
}

#fieldsetAgm {
    width: 7.75vw; 
    height: 14%;
    margin-top: 0.57vh;
    padding-top: 0.57vh; 
    border-radius: 4px;
    font-size: 0.90vw; 
}

#tableAgm {
	margin: 0;
	padding: 0;
    font-size: 0.90vw; 
}

td {
    padding: 0 0.39vw 0 0; 
    vertical-align: middle;
    text-align: right;
    font-size: 0.90vw; 
}

#txtVap {
    font-size: 0.90vw;
}

#txtI-O2 {
    font-size: 0.90vw;
    font-weight: bold; 
    padding-right: 0.26vw;  
}

#txtE-O2 {
    font-size: 0.90vw;
    font-weight: bold; 
    padding-right: 0.26vw;  
}

#txtEtCO2 {
    font-size: 1.68vw;
    font-weight: bold; 
    padding-right: 0.52vw;  
}

#txtI-Vap {
    padding-left: 1px; 
    font-size: 0.90vw;
    font-weight: bold; 
}

#txtE-Vap {
    margin-left: 0.19vw;
    font-size: 0.90vw;
    font-weight: bold; 
}

#fieldsetAwp {
    width: 7.75vw; 
    height: 12%;
    margin-top: 0.57vh;
    padding-top: 0.86vh;
    border-radius: 4px;
    font-size: 0.90vw; 
    white-space: nowrap;
}

#lblPip {
    width: 7.16vw;
    padding-left: 0.65vw;
    padding-top: 0;
    text-align: left;
    font-size: 0.90vw; 
}

#lblPeep {
    width: 6.51vw;
    padding-top: 0;
    text-align: left;
    font-size: 0.90vw; 
}

#txtPip  {
    width: 7.16vw;
    padding-left: 0.65vw;
    text-align: left;
    font-size: 1.03vw; 
    font-weight: bold; 
}

#txtPeep {
    width: 6.51vw;
    text-align: left;
    font-size: 1.03vw; 
    font-weight: bold; 
}

#fieldsetSpiro {
    width: 7.75vw;  
    height: 6.47vh;
    margin-top: 0.43vh;
    padding-top: 0.72vh;
    border-radius: 4px;
    font-size: 0.90vw; 
}

#lblTv {
    width: 5.86vw; 
    padding-left: 0.65vw;
    padding-top: 0;
    text-align: left;
    font-size: 0.90vw; 
}

#lblRr {
    width: 6.61vw; 
    padding-top: 0;
    text-align: left;
    font-size: 0.90vw; 
}

#txtTv  {
    width: 5.86vw;
    padding-left: 0.65vw;
    text-align: left;
    font-size: 1.03vw; 
    font-weight: bold; 
}

#txtRr  {
    width: 6.61vw; 
    text-align: left;
    font-size: 1.03vw; 
    font-weight: bold; 
}



#canvasHemo {
	height: 57.10vh;   /* was 58.42vh */
	width:  20.90vw;  
 	padding-left: 0.78vw;
    border-radius: 5px;
    background-color: transparent;
}

#fieldsetTemp {
    width: 7.75vw;  
    height: 6.47vh;
    margin-top: 0.25vh;  /* was 1.01vh */
	margin-left: 0.52vw;
    padding-top: 0.57vh;
    border-radius: 4px;
    font-size: 0.90vw; 
}

#txtTemperature {
    text-align: center;
    padding-left: 3.51vw;
    font-size: 1.42vw;
}

#fieldsetCase span,
#fieldsetCase td,
#fieldsetEcg span,
#fieldsetEcg td,
#fieldsetP1 span,
#fieldsetP1 td,
#fieldsetP1 p,
#fieldsetSpo2 span,
#fieldsetSpo2 td,
#fieldsetAgm span,
#fieldsetAgm td,
#fieldsetAwp span,
#fieldsetAwp td,
#fieldsetSpiro span,
#fieldsetSpiro td,
#fieldsetTemp span,
#fieldsetTemp td {
	color: var(--text-primary) !important;
}

/* fieldset frames */

#fieldsetCase,
#fieldsetEcg,
#fieldsetP1,
#fieldsetSpo2,
#fieldsetAgm,
#fieldsetAwp,
#fieldsetSpiro,
#fieldsetTemp {
	border: 2px solid #4e4e4e;
	color: var(--fieldset-title-color);
}


/* fieldset light theme */

.light-theme #fieldsetCase,
.light-theme #fieldsetEcg,
.light-theme #fieldsetP1,
.light-theme #fieldsetSpo2,
.light-theme #fieldsetAgm,
.light-theme #fieldsetAwp,
.light-theme #fieldsetSpiro,
.light-theme #fieldsetTemp {
	border: 2px solid #bfbfbf;
}

.light-theme #fieldsetEcg,
.light-theme #fieldsetAgm,
.light-theme #fieldsetAwp,
.light-theme #fieldsetSpiro,
.light-theme #fieldsetTemp {
	color: var(--fieldset-title-color);
}

.light-theme #fieldsetSpo2 {
}


/* fixes text overflow on content */

#preopScroller pre, 
#divInfo pre {
    white-space: pre-line;
	padding-bottom: 100px;
    display: unset;
}

#divCenter{
    width: 50vw;  
    height: 46.29vh; 
    margin: 1.15vh 0; 
    float: left;
}

#divImageHolder {
	height: 24.22vh;
	width: 27vw;     
	display: inline-block;
    margin-top: 1.15vh; 
    vertical-align: top;
}

#imgPatient {
	width: 48%; 
    height: 98%;
    margin: 0 0 0 0.26vw; 
    padding: 0;
    border-radius: 5px;
}

#imgBagVent {
	width: 48%; 
    height: 98%;  
    margin: 0 0 0 0.26vw; 
    padding: 0px;
    border-radius: 5px;
}

.flow-group {
	display: inline-block;
 	height: 24.22vh;
	width: 19vw; 
    margin: 1.15vh 0.52vw 0 0.52vw; 
	padding: 1.15vh 0.52vw 1.15vh 0.52vw; 
    border-radius: 4px;
    float: right;
	border-style: solid;
	border-width: 2px;
	border-color: var(--bg-fourth);
    background: var(--content-div-bg);
}

/* Shared base styles for all gas divs */
#divGases {
    background-color: transparent;
    width: 48%;   
    display: inline-block;
    vertical-align: top;
	margin-top: -4px;
}

#divN2O, #divAir, #divO2 {
    padding: 9px 2px;
    margin: 3px;
    border-style: solid;
    border-radius: 5px;
    font-size: 13px;
    border-color: #000;
    border-width: 2px;
}

#seldivN2O, #seldivAir, #seldivO2 {
    width: 34%; 
    height: 70%; 
    margin: 0 0.52vw 0;   
    padding: 0.57vh 0 0.57vh 0.26vw;  
}

/* new schemas */
/* --- US Scheme --- */
#divN2O.US-N2O {
    background-color: #3770e4; /* US blue */
    color: #fff;
}

#divAir.US-Air {
    background-color: #f3cd00; /* US yellow */
    color: #000;
}

#divO2.US-O2 {
    background-color: #3a7863; /* US green */
    color: #fff;
}

/* --- ISO Scheme --- */
#divN2O.ISO-N2O {
    background-color: #005BBB; /* ISO/EIGA RAL 5010 blue */
    color: inherit;
}

#divAir.ISO-Air {
    background-color: #fff; /* ISO white */
    color: #000;
	border-width: 2px 12px;
    padding-left: 0;
}

#divO2.ISO-O2 {
    background-color: #fff; /* ISO white */
    color: #000;
}

/* --- EIGA Scheme --- */
#divN2O.EIGA-N2O {
    background-color: #005BBB; /* ISO/EIGA RAL 5010 blue */
    color: #fff;
}

#divAir.EIGA-Air {
    background-color: #fff; /* EIGA white */
    color: #000;
}

#divO2.EIGA-O2 {
    background-color: #fff; /* EIGA white */
    color: #000;
}

/* --- NFPA Scheme --- */
#divN2O.NFPA-N2O {
    background-color: #0000FF; /* NFPA blue */
    color: #fff;
}

#divAir.NFPA-Air {
    background-color: #FFFF00; /* NFPA yellow */
    color: #000;
}

#divO2.NFPA-O2 {
    background-color: #008000; /* NFPA green */
    color: #fff;
}

/* --- MEGA Scheme --- */
#divN2O.MEGA-N2O {
    background-color: #005BBB; /* MEGA blue */
    color: #fff;
}

#divAir.MEGA-Air {
    background-color: #fff; /* MEGA white */
    color: #000;
}

#divO2.MEGA-O2 {
    background-color: #fff; /* MEGA white */
    color: #000;
}

/* labels */
.light-theme #divN2O.ISO-N2O label,
.light-theme #divN2O.US-N2O label,
.light-theme #divN2O.EIGA-N2O label,
.light-theme #divN2O.NFPA-N2O label,
.light-theme #divN2O.MEGA-N2O label {
    color: #fff;
}

.light-theme #divAir.US-Air label,
.light-theme #divAir.NFPA-Air label {
    color: #000;
}

.light-theme #divAir.ISO-Air label,
.light-theme #divAir.EIGA-Air label,
.light-theme #divAir.MEGA-Air label {
    color: #000;
}

.light-theme #divO2.US-O2 label,
.light-theme #divO2.NFPA-O2 label {
    color: white;
}

.light-theme #divO2.ISO-O2 label,
.light-theme #divO2.EIGA-O2 label,
.light-theme #divO2.MEGA-O2 label {
    color: #000;
}
/* end new schemas */

#divVapWrapper {
    width: 33%;  
    height: 100%;  
    margin: 0;
    padding: 0;
    display: inline-block;
	vertical-align: top;
}

#divVaporizer {
	width: 100%; 
	height: 80%;
    margin: 0;
    padding: 2px 0 0 0; 
    border-radius: 5px;
    background: url("../app/images/Sevoflurane.jpg");  /* was Sevoflurane */
    background-repeat: no-repeat;
    background-size: cover; 
	background-position: center;
    text-align: center; 
}

#selVapAmount {
    width: auto;
    margin: 0.57vh 0.26vw 0.57vh 0.26vw; 
    padding: 0.57vh 0.26vw 0.57vh 0.26vw;  
}


#selVaporizer {
    width: 100%; 
	height: 20%;
    margin: 0;
    padding: 0;
	background-color: var(--topbar-secondary);
    text-align: center;
}

.flowmeter-container {
    height: 24.22vh; 
    width: 42px;
    background-color: transparent; 
    background: transparent;
    border: none;
    display: inline-block;
}

.flowmeter {
    display: block;
    height: 100%;  
    width: 100%;
    align-items: center;
    border-radius: 8px;         
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
}

.flowmeter-tube {
	position: relative;
    height: 24.22vh;  
    width: 100%; 
    border-radius: 10px;
	background: linear-gradient(to right, #444, #444, #444);
    overflow: hidden;
}

.light-theme .flowmeter-tube {
	background: transparent;
}

.flowmeter-top, .flowmeter-bottom {
  width: 100%;
  height: 24px;
  background-color: #777;
  border-radius: 9999px;
  display: none;
}


.flowmeter-inner-tube {
  position: absolute; 
  inset: 1px 1px; 
  border: 2px solid #a5a5a5;
  border-radius: 9999px;
  background: linear-gradient(to right, 
    rgba(208, 208, 208, 0.6) 0%, 
    rgba(255, 255, 255, 0.9) 15%, 
    rgba(208, 208, 208, 0.8) 30%, 
    rgba(224, 224, 224, 0.6) 45%, 
    rgba(216, 216, 216, 0.5) 60%, 
    rgba(232, 232, 232, 0.3) 75%, 
    rgba(255, 255, 255, 0.1) 100%);
}

.flowmeter-bobbin {
  position: absolute;
  left: 50%;
  width: 24px;  /* was 18px */
  height: 24px; /* was 18px */
  background-color: rgba(16,185,129,0.6);
  border: 1.5px solid #111;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.flowmeter-bobbin-outer {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 0;
	z-index: 1;
	font-size: 0.77vw;
}

.flowmeter-markings {
    position: absolute;
	height: 21.79vh;    
	margin-top: 2.42vh; 
    padding: 0;
    overflow: hidden;
	font-size: 0.77vw;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.flowmeter-integers {
    flex-grow: 1;
    padding: 0% 0% 5% 0%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flowmeter-decimals {
  margin-top: 8px;
}

.flowmeter-mark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  color: #000;
}

.flowmeter-mark span {
  width: 12px;
  height: 1px;
  background-color: #000;
}

/* breadcrumbs */

.breadcrumbs {
    background-color: #0f151f;
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 5px;
    width: 70%;
    margin: 30px auto 0 auto;
}

.no-sidebar .breadcrumbs, 
.no-sidebar .sidebar, 
.no-sidebar .settings-switch,
.no-sidebar .action-button.preop, 
.no-sidebar .action-button.case-help, 
.no-sidebar .action-button.case-log {
	display: none; /* hidden at request */
}

.light-theme .breadcrumbs {
    background-color: #e3e3e3;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: inline;
    font-size: 15px;
}

.breadcrumbs li+li:before {
    padding: 8px;
    color: #cccccc;
    content: "/\00a0";
}

.breadcrumbs li a {
    color: #03a9f4;
    text-decoration: none;
}

.breadcrumbs li a:hover {
    color: #1eb7fc;
    text-decoration: underline;
}

.breadcrumbs-item {
    background: #32425b;
    color: #fff;
    padding: 10px 30px 10px 60px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}
.light-theme .breadcrumbs-item {
	background: #848d9c;
}

.breadcrumbs-item:after {
    content: '';
    position: absolute;
    top: 0; 
    right: -15px;
    width: 30px; 
    height: 100%;
    transform: skew(-30deg);
    background: inherit;
    z-index: 1;
}

.breadcrumbs-item:last-child {
    background: #6b40c1;
}

.breadcrumbs-item:last-child:after {
    /* background: #777; */
}

.breadcrumbs-item:nth-child(2),
.breadcrumbs-item:nth-child(2):after {
    background: #1f2b3e;
}

.light-theme .breadcrumbs-item:nth-child(2),
.light-theme .breadcrumbs-item:nth-child(2):after {
    background: #5e779e;
}

.breadcrumbs-item:nth-child(3),
.breadcrumbs-item:nth-child(3):after {
    background: #2f466a;
}

.light-theme .breadcrumbs-item:nth-child(3),
.light-theme .breadcrumbs-item:nth-child(3):after {
    background: #4b668f;
}

.breadcrumbs-item:first-child {
    padding-left: 30px;
}
.breadcrumbs-item:first-child:hover {
	background: #4b6184;
}

.breadcrumbs-item:nth-child(2):hover,
.breadcrumbs-item:nth-child(2):hover:after {
	/* background: #32435f; */
}



/* Animations */
/* --------------------------------------------------------
.screen-effect {
    position: absolute;
    inset: 0;
    background: 
radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0) 70%),
repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 3px);
    background-size: 100% 100%, 100% 6px;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: flicker 1s infinite, roll 2s linear infinite;
}

.monitor-container .scanline {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%; 
	background: linear-gradient(to bottom, 
transparent 0%,
rgba(0, 0, 0, 0.2) 10%,
rgba(0, 0, 0, 0.4) 50%,
rgba(0, 0, 0, 0.2) 90%,
transparent 100%);
	animation: scanline 5s infinite linear;
}

@keyframes flicker {
    0% { opacity: 0.95; }
    5% { opacity: 0.85; }
    10% { opacity: 0.95; }
    15% { opacity: 0.9; }
    20% { opacity: 0.95; }
    25% { opacity: 0.85; }
    30% { opacity: 0.95; }
    35% { opacity: 0.9; }
    40% { opacity: 1; }
    45% { opacity: 0.95; }
    50% { opacity: 0.9; }
    55% { opacity: 0.95; }
    60% { opacity: 0.9; }
    65% { opacity: 0.95; }
    70% { opacity: 0.9; }
    75% { opacity: 1; }
    80% { opacity: 0.9; }
    85% { opacity: 0.95; }
    90% { opacity: 0.9; }
    95% { opacity: 0.95; }
    100% { opacity: 0.95; }
}

@keyframes flicker {
    0% { opacity: 0.95; }
    5% { opacity: 0.85; }
    10% { opacity: 0.95; }
    15% { opacity: 0.9; }
    20% { opacity: 0.95; }
    25% { opacity: 0.85; }
    30% { opacity: 0.95; }
    35% { opacity: 0.9; }
    40% { opacity: 1; }
    45% { opacity: 0.95; }
    50% { opacity: 0.9; }
    55% { opacity: 0.95; }
    60% { opacity: 0.9; }
    65% { opacity: 0.95; }
    70% { opacity: 0.9; }
    75% { opacity: 1; }
    80% { opacity: 0.9; }
    85% { opacity: 0.95; }
    90% { opacity: 0.9; }
    95% { opacity: 0.95; }
    100% { opacity: 0.95; }
}

@keyframes roll {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, 0 2px; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes textFlicker {
    0% { opacity: 1; }
    50% { opacity: 0.90; }
    100% { opacity: 1; }
}
------------------------------------------------------ */



/* Exit Warning Modal */
#exitWarningModal .modal-content {
    max-width: 500px;
    text-align: center;
    padding: 2rem;
}

#exitWarningModal h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#exitWarningModal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

#exitWarningModal button {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
	border: none;
    color: #fff;
}

#exitWarningModal .saveExit {
    background: #47c445;
}

#exitWarningModal .continueExit {
    background: #c44545;
}

#exitWarningModal .cancelExit {
    background: #999;
}

#exitWarningModal button:hover {
    opacity: 0.9;
}

/* cases confirmation bubble */
.confirmation-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

.confirmation-popup ~ .confirmation-popup {
    transform: translateY(calc(-100% - 10px));
}

.confirmation-popup.hide-confirmation {
    background-color: #ff9800;
}

.confirmation-popup.show-confirmation {
    background-color: #4CAF50;
}

/* toggle switch on settings page */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 24px;
	margin-right: 10px;
}
.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 24px;
}
.toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}
input:checked + .toggle-slider {
	background-color: #2196F3;
}
input:checked + .toggle-slider:before {
	transform: translateX(16px);
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---- viewport 1536px x 695px ----------------------
	#divImageHolder {
		width: 27vw;     
	}
	
	#imgPatient,#imgBagVent {
		width: 48%; 
	}	
	
	.flow-group {
		width: 19vw; 
	}
	
	#divGases {
		width: 48%; 
	}
---------------------------------------------------- */

/* media queries */
@media screen and (min-width: 1340px) and (max-width: 1420px) { 
	#divImageHolder {
		width: 23vw;     
	}
	
	#imgPatient,#imgBagVent {
		width: 48%; 
		height: auto;  
	}	
	
	.flow-group {
		width: 23vw; 
	}
	
	#divGases {
		width: 48%; 
	}
}

@media screen and (min-width: 1000px) and (max-width: 1339px) {  
	#divImageHolder {
		width: 18vw;     
	}
	
	#imgPatient,#imgBagVent {
		width: 40%; 
		height: auto;  
	}	
	
	.flow-group {
		width: 28vw; 
	}

	
	#divGases {
		width: 48%; 
	}
}

@media screen and (min-width: 900px) and (max-width: 999px) { 
	#divImageHolder {
		width: 20vw;     
	}
	
	#imgPatient,#imgBagVent {
		width: 40%; 
		height: auto;  
	}	
	
	.flow-group {
		width: 26vw;  
	}
	
	#divGases {
		width: 40%; 
	}
}

@media screen and (min-width: 400px) and (max-width: 899px) {
	#divImageHolder {
		width: 20vw;     
	}
	
	#imgPatient,#imgBagVent {
		width: 40%; 
		height: auto;  
	}	
	
	.flow-group {
		width: 28vw; 
	}
	
	#divGases {
		width: 40%; 
	}
}

