/* ----------------------------------------------- */
/*                                                 */
/*  Title:    style.css                            */
/*  App:      Anesthesia Simulator 7               */
/*  Author:   Anesoft Corporation                  */
/*  URL:      anesoft.com                          */
/*  App:      app.anesoft.com                      */
/*                                                 */
/*  Redesign: Everplex                             */
/*  URL:      everplex.org                         */
/*  Date:     2024-08-23                           */
/*                                                 */
/* ----------------------------------------------- */

:root {
    --bg-primary: #000;
    --bg-secondary: #333;
    --bg-tertiary: #3e444a;
    --bg-fourth: #1f2329;
    --bg-content: #1f2227;
    --text-primary: #fff;
    --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-color5: #5b646e; /* lt grey-blue */
    --links-color: #9debff;
    --border-color: #444;
    --content-div-bg: #374044;
    --content-div-select: #516168;
    --content-div-button: #47a9c2;
    --content-div-button-hover: #68c5dd;
    --content-div-confirm: #629948;
    --content-border: 3px solid #374044;
    --content-title-color: #84e3fb;
    --footer-bg: #1f2329;
    --footer-button-bg: #2a2f38;
	--alert-confirm: #629948;
	--alert-cancel: #c2478b;
	--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; 
    --bg-secondary: #ededed; 
    --bg-tertiary: #eee; 
    --bg-fourth: #dadada; 
    --bg-content: #f0f0f0; 
    --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-color: #0056b3;
    --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;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

a {
    color: var(--links-color);
    text-decoration: none;
}

button {
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Reset */

#main-content-outer {
    width: 100%;
    min-width: 1066px;
    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: 24px;
}

.logo a {
    color: var(--text-primary);
	height: 52px;
    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;
    margin-top: 15px;
    margin-bottom: -10px;
    margin-left: -10px;
    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);
}
.light-theme .logout { 
	background: rgba(50,50,50,0.1);
}
.light-theme .logout:hover { 
	background: rgba(50,50,50,0.2);
}

.center-title {
    /* open sans ***
	font-size: 24px;
    font-weight: 600; */
    font-family: 'Kadwa', 'Open Sans', Arial, sans-serif;
	font-size: 29px;
    font-weight: normal;
    margin-bottom: -13px;
    margin-top: -8px;	
}

.center-title img {
	/* for adding the matching logo
	 * background to title */
	filter: invert(100%);
    position: absolute;
    margin-left: -367px;
    height: 52px;
    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: 15px;
}

.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: 10px 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: 15pt;
    color: var(--text-white);
    white-space: nowrap;
}

.timer {
    background-color: #47a9c2;
    margin-right: 19px;
}

.score {
    background-color: #27a949;
    margin-right: 12px;
}

.action-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.action-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 17px;
    cursor: pointer;
    margin-left: 0;
    padding: 10px 12px;
    margin-top: -10px;
    margin-bottom: -10px;
}

.action-button i {
    font-size: 20px;
    color: var(--text-white);
}

.action-button:not(.new-case) {
    margin-right: 0;
}

.new-case {
    margin-left: 40px;
}

/* Icon Styles */
.icon-circle {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.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: 250px;
    background-color: var(--sidebar-primary);
    /* height: calc(100vh - 132px); */
    position: absolute;
    top: 132px;
    left: 0;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    overflow-y: hidden;
    transition: width 0.3s ease;
	padding-bottom: 30px;
}

.sidebar.collapsed {
    width: 90px;
    overflow-x: hidden;
}
.sidebar.collapsed .sidebar-button:hover {
    /* card styles collapsed fix */
    padding: 12px 14px;
    /* taller version ***
	margin: 3px 6px 0 6px; */
    /* shorter version ***/
	margin: -1px 6px -1px 6px;
}

.sidebar-button {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--text-primary);
    /* full width style **
      padding: 12px 20px; */
    /* card style */
      padding: 10px 12px;
      color: var(--text-primary);
      /* taller version ***
	  margin: 5px 13px 2px 8px; */
      /* shorter version ***/
	  margin: 1px 13px 1px 8px;
      border-radius: 10px;
      -moz-border-radius: 10px;
      -webkit-border-radius: 10px;
    background: none;
    box-shadow: none;
    border: none;
}

.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: 50px;
    height: 50px;
    flex-shrink: 0;
    color: var(--text-white);
}

.sidebar-button .icon-circle i {
    font-size: 20px;
}

.sidebar-button span {
    margin-left: 15px;
    font-size: 19px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    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-monitors i { font-size: 23px; padding-top: 5px; }

.sidebar-button.sidebar-airway .icon-circle { background-color: #007cfc; }
.sidebar-button.sidebar-airway:hover .icon-circle { background-color: #1a8dff; }
.sidebar-button.sidebar-airway img { height: 32px; margin-top: 2px; }

.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-fluids i { font-size: 21px; padding-top: 1px; }

.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; }
.sidebar-button.sidebar-resuscitate i { font-size: 19px; padding-top: 2px; padding-left: 1px; }

/* green 25a945 2bc951 */
/* orange fe7c12 ff9a40 */
/* purple 6a10ef 8a3eff */
/* lt purple 7041c4 8f60e3 */


/* hover info for collapsed sidebar */

.sidebar-button span {
    transition: opacity 0.3s ease;
}

.info-show {
    position: fixed;
    left: 100px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    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: 60px;
    right: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    padding: 10px;
    text-align: right;
    box-shadow: var(--card-box-shadow);
    -moz-box-shadow: var(--card-box-shadow);
    -webkit-box-shadow: var(--card-box-shadow);
	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: center;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    padding: 10px;
    cursor: pointer;
}

.menu ul li.just-info:hover {
    cursor: text;
    background: transparent;
}

.just-info-outer {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 10px 0
}

.just-info-outer a {
    color: var(--text-primary);
}

.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;
}

.menu ul li.pro-button,
.menu ul li.theme-toggle {
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 7px;
}

.menu ul li:hover{
    background-color: var(--accent-color3);
    color: var(--text-white);
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
}

.pro-only {
    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: 50px;
  white-space: nowrap;
  background: #888;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 14px;
}

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: -21px;
    margin-left: -35px;
    font-size: 12px;
    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: 45px;
}
.menu li.theme-toggle {
    padding-left: inherit;
}

/* Theme Toggle */
#theme-toggle {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#theme-toggle i {
    margin-right: 10px;
}
.menu ul li.pro-button:hover,
.menu li#theme-toggle:hover {
    background-color: var(--accent-color4);
}

/* Content */

#divCenter{
    width: calc(50% - 15px);  
    height: calc(100vh - 197px);
    margin: 8px 0;
    float: left;
    min-width: 533px;
}

#imgPatient {
    /* width: 194px; */
	width: 49%;
    height: 114px;
    border-radius: 5px;
}

#imgBagVent {
    /* width: 194px; */
	width: 49%;
    height: 114px;
    border-radius: 5px;
}

.mainContentSection {
    margin-left: 250px;
}

.mainContentSection.sidebar-collapsed {
    margin-left: 90px;
}

.content {
    background: var(--bg-secondary);
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    height: calc(100vh - 197px);
}

.content.sidebar-collapsed {
    margin-left: 90px;
}

/* Footer */
.copyright {
    color: var(--text-secondary);
    text-align: center;
    padding: 5px 0 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 12px;
	z-index: 2;
}

.site-tag {
    position: absolute;
    left: 10px;
    bottom: 12px;
}

.dev-tag {
    position: absolute;
    right: 10px;
    bottom: 12px;
}

.footer-menu {
    background-color: var(--bg-fourth);
    color: var(--text-primary);
    text-align: center;
    padding: 12px 10px;
    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;
	}
}

.footer-menu a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0;
    padding: 5px 10px;
    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: 20px 40px;
    border-radius: 20px;
    border: 3px solid #444;
}
#profilePictureModal .modal-content .close {
    position: relative;
    float: right;
    margin: -23px -43px 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,
	#proStatusModal .modal-content {
		background-color: rgb(47 76 135 / 95%);
	}
	
	.light-theme #upgradeModal .modal-content,
	.light-theme #proStatusModal .modal-content {
		background-color: rgb(225 235 255 / 95%);
	}
	
	#upgradeModal .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: 17px;
		color: #fff;
		border: none;
		cursor: pointer;
	}
	
	#upgradeModal .modal-content #upgradeYes,
	#proStatusModal .modal-content .upgradeYes {	
	    background: #629948;
	}
	
	#upgradeModal .modal-content #upgradeNo,
	#proStatusModal .modal-content .upgradeNo {	
	    background: #707070;
	}
	
	#upgradeModal .modal-content #upgradeYes:hover,
	#proStatusModal .modal-content .upgradeYes:hover {	
	    background: #6cb24a;
	}
	
	#upgradeModal .modal-content #upgradeNo:hover,
	#proStatusModal .modal-content .upgradeNo:hover {	
	    background: #7b7b7b;
	}
	
	.modal label {
		color: #d6e0f8;
		/* button style ***
			background: #4f5b78;
			padding: 5px 10px;
			margin-bottom: 4px;
			display: inline-block;
			border-radius: 5px;
		*** */
	}
	.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: 16px;
		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 {
		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: 28px;
		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 #changeProfilePicture {
    background: #8b60d0;
}
.user-settings-top #removeProfilePicture {
    background: #bb5ba6;
}

.user-settings h2 {
  font-size: 28px;
}

.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: 17px;
    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: 28px;
    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: 40px;
}

.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: 90px;
}

.case-details-table th,
.case-details-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    min-width: 110px;
}

.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: 100px;
    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: 100px;
    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: 100px;
    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: 20px;
    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{
    background-color: #333;
    border: none;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 0 15px 15px 15px;
    left: 33%;
    position: absolute;
    top: 10%;
    -moz-box-shadow:    3px 3px 5px 6px #111;
    -webkit-box-shadow: 3px 3px 5px 6px #111;
    box-shadow:         3px 3px 5px 6px #111;
}
.login h1 {
    font: bold 20px arial;
    padding-top: 25px;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 1px 1px 3px #111;
}
.login h2 {
    font: bold 30px arial;
    padding-top: 15px;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 3px #111;
}
.login .link {
    padding: 20px 59px 42px 0;
}
.login .link a {
    font: bold 13px Arial;
    color: #777;
}
.login .link a:hover {
    color: #fff;
}
#login {
    font-weight: bold
}
.login tr td{
   /* border-bottom: 1px solid #D5D5D5;*/
    line-height: 35px;
    text-align: right;
    padding:0 5px;
}
.login input {
    width: 170px;
}
.login .box {
    background: #222;
    border: none;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 20px;
    margin: 10px 10px;
}
.login button {
    background: #ddd;
    border: 2px solid #aaa;
    padding: 5px 10px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font: 19px arial;
    color: #555;
    margin-top: 12px;
}
.login button:hover {
    background: #f0f0f0;
    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: -27px;
    padding-bottom: 47px;
    margin-right: 15px;
    position: absolute;
    right: 15px;
}
.login #login-link a {
    font: bold 13px Arial;
    color: #777;
}
.login #login-link a:hover {
    color: #000;
}
.dashboard{
    padding: 60px;
}

.dashboard tr td a{
    color: black;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;
}

/* MAIN CONTENT AREA */

/* main content background choice */

.displayCaseActive #divDisplayContent {
    background-color: #1f2227;
}

.light-theme .displayCaseActive #divDisplayContent {
    /* background-color: var(--bg-content); */
	background-color: #fcfcfc;
    border: 4px solid #ddd;
}

#divDisplayContent select {
    background: var(--content-div-select);
}

#divDisplayContent input[type=checkbox] {
  width: 25px;
  height: 25px;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 20px;
  vertical-align: middle;
  margin-bottom: 9px;
  margin-right: 9px;
}

#divDisplayContent label {
  vertical-align: middle;
  font-size: 15px
}

#divDisplayContent button {
  font-size: 14px;
  white-space: nowrap;
}

/* toggle cases list button */

/*************************************
.displayCaseActive #showCasesList {
	display: block !important;
}

#showCasesList {
	display: block !important;
}
*************************************/
.showCasesList,
#showCasesList,
.light-theme .showCasesList,
.light-theme #showCasesList {
	display: none !important; /* hide on preference */
}

#showCasesList {
    position: absolute;
    background: #3f434b;
    margin-top: -40px;
    margin-left: 5px;
    width: 24px;
    height: 27px;
    padding: 5px 0 0 8px;
    cursor: pointer;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -moz-border-radius: 50%;
}

.light-theme #showCasesList {
    background: #e1e1e1;
}

/* end cases list buttons */

#divMonitor  {
    width: calc(50% - 15px); 
    height: calc(100vh - 197px);
    margin-left: 15px;
    float: left;
	max-height: 100%;
}

#canvasHemo {
    background-color: transparent;
    /* margin-top: 17px; */
    position: absolute;
	top: 8px;
}

#canvasResp {
    background-color: transparent;
    position: absolute;
	/* top: 455px; */
	top: 50.5vh;
}

#divDisplayContent {
    height: calc(98vh - 400px) !important;
	width: 98%;
    margin: 0px;
    font-size: 14px;
	overflow-y: auto;
	border-radius: 15px;
	-moz-border-radius: 15px;
	-webkit-border-radius: 15px;
    padding: 10px 0 0 10px;
}

.light-theme #divDisplayContent {
    background: #e1e1e1;
}

#txtCaseTitle {
	display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding-top: 3px;
    font-size: 16px;
    font-weight: bold;
	border: none;
	color: #a9fbc0;
	font-size: 22px;
	margin: 10px 0 10px 49px;
}
.light-theme #txtCaseTitle {
	color: #0cb43b;
}

#preopScroller > div {
  padding-bottom: 150px; /* 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: 17px;
  color: #93c5d4;
  color: #6ddef1;
}

#preopScroller .preop-main-title {
  font-weight: bold;
  font-size: 15px;
  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: 20px;
  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: 14px;
  margin: 1px 0 20px 39px;
  display: block;
  line-height: 22px;
  font-size: 15px;
}

#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;
}


/* make splash fit nicely */

#imgSplash {
    padding: 50px;
    height: calc(100% - 97px);
    object-fit: cover;
    width: auto;
    overflow: hidden;
    background-color: #6f6f6f !important;
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    margin-top: 16px;
    margin-left: 4px;
}

/* dropdown menus */

select {
  padding: 5px;
  font-size: 15px;
}

select {
    appearance: none;
    background-color: var(--topbar-secondary);
    color: var(--text-primary);
    padding: 10px 15px;
    border: 2px solid #23272a;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    outline: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    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: 18px;
    margin: 10px 0;
}

/* menu light theme */

.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;
}

#btnSaveCaseLog {
	position: fixed;
    top: 79px;
}
#txtSavedCaseLog {
    margin-top: -16px;
    background: var(--content-div-confirm);
    padding: 20px 20px 4px 20px;
    line-height: 28px;
    font-size: 14px;
    border-radius: 5px;
    font-weight: bold;
    position: fixed;
    top: 92px;
    right: 261px;
}

/* *************************************************
 * dynamically extend the hemo info container fieldsets based on prior height, 
 * with min of prior height, and cumulative max of window height. 
 * 
 * first number is inspect element height of fieldset box (e.g. ECG)
 * second number is the total inspect element height of the 
 * outer container at their original size.
 * it is multiplied by the total window height, which in this case is also a calculation.
 * 
 * *************************************************
*/

#fieldsetEcg {
    height: calc((93.5 / 629.33) * (100vh - 297px)) !important;
    min-height: 67px;
}

#fieldsetP1 {
    height: calc((87.5 / 629.33) * (100vh - 297px)) !important;
    min-height: 62px;
}

#fieldsetSpo2 {
    height: calc((74.5 / 629.33) * (100vh - 297px)) !important;
    min-height: 50px;
}

#fieldsetAgm {
    height: calc((112.7 / 629.33) * (100vh - 297px)) !important;
    min-height: 83px;
}

#fieldsetAwp {
    height: calc((85.7 / 629.33) * (100vh - 297px)) !important;
    min-height: 61px;
}

#fieldsetSpiro {
    height: calc((85.7 / 629.33) * (100vh - 297px)) !important;
    min-height: 61px;
}

#fieldsetTemp {
    height: calc((85.7 / 629.33) * (100vh - 297px)) !important;
    min-height: 61px;
}

/* fieldset content */
#fieldsetCase span,
#fieldsetCase td,
#fieldsetEcg span,
#fieldsetEcg td,
#fieldsetP1 span,
#fieldsetP1 td,
#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 #fieldsetP1 #txtP1 {
	color: #ea1a2f !important;
}

.light-theme #fieldsetSpo2 {
}


/* fixes text overflow on content */

#preopScroller pre, 
#divInfo pre {
    white-space: pre-line;
    height: calc(100vh - 340px);
	padding-bottom: 100px;
    display: unset;
}

.flow-group {
	display: inline-block;
    margin-top: 8px;
    margin-right: -17px;
    width: 55%;
    float: right;
}
#divImageHolder {
	display: inline-block;
    margin-top: 13px;
    vertical-align: top;
    width: 45%;
}

/* new flowmeter */
.flowmeter-container {
  background-color: #444;
  border-radius: 50px;
  border: 2px solid #111;
  display: inline-block;
}
.light-theme .flowmeter-container {    
	background-color: #ccc;
    width: 92px;
    border-radius: 50px;
    border: 2px solid #b5b5b5;
}
.light-theme .flowmeter-tube {
	background: transparent;
}

.flowmeter {
  display: block;
  align-items: center;
  border-radius: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
}

.flowmeter-top, .flowmeter-bottom {
  width: 100%;
  height: 24px;
  background-color: #777;
  border-radius: 9999px;
  display: none;
}

.flowmeter-tube {
	position: relative;
	width: 76px;
	height: 384px;
	background: linear-gradient(to right, #444, #444, #444);
    border-radius: 10px;
    overflow: hidden;
}

.flowmeter-inner-tube {
  position: absolute;
  inset: 4px 8px;
  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%);
  border: 2px solid #111;
}

.flowmeter-bobbin {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background-color: rgba(16,185,129,0.6);
  border: 1.5px solid #111;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.flowmeter-markings {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  z-index: 1;
}

.flowmeter-integers {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.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;
}

.flowmeter-knob {
  position: relative;
  width: 70px;
  height: 70px;
  max-width: 70px;
  max-height: 70px;
  min-width: 70px;
  min-height: 70px;
  margin-top: 16px;
  background-color: #10b981;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  margin-left: 1px;
  border: 2px solid #111;
}

.flowmeter-knob-inner {
  position: absolute;
  inset: 4px;
  background: linear-gradient(to bottom right, #d1d5db, #6b7280);
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flowmeter-knob-inner::after {
  content: '';
  width: 4px;
  height: 40px;
  background-color: #4b5563;
  border-radius: 9999px;
}

#divGases {
    background-color: transparent;
    width: 188px;  
    display: inline-block;
	vertical-align: top;
	width: 52%;
}

#seldivN2O, #seldivAir, #seldivO2, #selVapAmount {
    padding: 2px 9px 2px 10px;
    width: auto;
    margin-top: -2px;
    margin-left: -15px;
}

#divVapWrapper {
    width: 114px;
    display: inline-block;
	vertical-align: top;
    margin-top: 3px;
	width: 26%;
}

#selVaporizer {
    width: 100%;
    margin-top: 0px;
    padding: 3px 7px;
    text-align: center;
}

/* mini version */
.flowmeter-container {
	background: none !important;
    border: none !important;
    height: 121px !important;
    min-height: 121px !important;
    width: 38px !important;
}
.flowmeter-tube {
    width: 46px;
    height: 121px;
}
.flowmeter-knob {
	display: none;
}

.flowmeter-bobbin-outer {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	z-index: 1;
	font-size: 12px !important;
	max-height: 107px !important;
}

.flowmeter-markings {
    max-height: 127px !important;
    overflow: hidden !important;
	font-size: 12px !important;
	padding: 0 !important;
}

/* relocated canvresp */

#divResp {
	float: left;
    /* position: absolute;
    margin-top: -42px !important; */
    width: 140px;
}

#canvasRespContainer {
    float: left;
    position: relative;
    /* left: 206px;
    top: 72px;
    margin-top: -94px !important; */
    margin-top: -25px !important;
    margin-left: 64px;
}

/* horizontal spiro & temp */

#fieldsetTemp {
	position: absolute;
    margin-left: 146px;
    margin-top: 0px !important;
}

.flowmeter-tube {
    height: 126px !important;
}

.flowmeter-inner-tube {
    border: 2px solid #a5a5a5 !important;
}

/* monitor design */
.monitor-container {
    --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);
    padding: var(--frame-padding);
    box-sizing: border-box;
    margin: 10px 20px 10px 10px;
    width: calc(50% - 15px);
	height: calc(100vh - 197px);
    float: left;
    min-width: 533px;
}

.monitor-frame {
    position: relative;
    height: 100%;
    background-color: var(--screen-color);
    border-radius: 0.25vmin;
    overflow: hidden;
}

.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;
}

.screen-content {
    position: absolute;
    inset: var(--bevel-width);
    display: flex;
    /* justify-content: center;
    align-items: center; */
    font-family: "Courier New", monospace;
    font-size: 2.5vmin;
    color: var(--screen-glow);
    text-shadow: 0 0 5px var(--screen-glow);
    animation: textFlicker 1s infinite;
	padding: 10px 0;
	overflow-y: auto;
    overflow-x: 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));
}

/* Animations */

/* faster version flicker ******
@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; }
}
*/

/* slower flicker */
@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; }
}
/* end monitor design */

#caseList option:disabled {
    color: gray;
    font-style: italic;
}

/* breadcrumbs */



.breadcrumbs {
    background-color: #0f151f;
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 5px;
    width: 70%;
    margin: 30px auto 0 auto;
}

.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: white;
    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; */
}

/* small screens height (1080p with bookmarks bar) */
@media screen and (max-height: 680px) {
	/* icons */
	.sidebar-button {
		padding: 5.5px 12px;
	}
	.sidebar-button .icon-circle i {
		font-size: 15px;
	}
	.sidebar-button .icon-circle {
		width: 20px;
		height: 20px;
	}
	.icon-circle {
		min-width: 35px;
		min-height: 35px;
	}
	/* intro screen */
	#imgSplash {
		padding: 10px;
		height: 77%;
	}
	#divDisplayContent {
		height: calc(98vh - 341px)
	}
	/* active case */
	#divDisplayContent {
		height: calc(98vh - 364px) !important;
	}
}