/* html, body {margin-top: 60; padding: 20;} */
html {
    width:100%;
    background-color:white;
    font-family: "Roboto", sans-serif;
}
body {
    border-top: 1px solid #666666;
    margin-top: 45px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
.body-with-topbar {
    margin-top: 45px;
}

.body-without-topbar {
    margin-top: 0px;
}

.topbar {
    box-sizing: border-box;
    min-height:45px;
    top:0;
    left:0;
    width:100%;
    background-color:#054460;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    position: fixed;
    max-height: 45px;
    transition: all 1s;
}

.topbar-hidden {
    top: -40px;
    opacity: 0.3;
}
.topbar-visible {
    top: 0px;
    opacity: 1;
}

.multi-mon-topbar {
    box-sizing: border-box;
    min-height:45px;
    top:0;
    left:0;
    width:100%;
    padding: 0px 10px;
    background-color:#054460;
    font-size: 18px;
    z-index: 10;
    position: fixed;
    max-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left {
    display:inline-block;
    padding-top:2px;
    float:left;
}
.left img{
    height:40px;
}

.center{
    text-align: center;
    color:white;
    font-family: "Roboto", sans-serif;
    margin-top: 10px;
}

.multi-mon-center{
    text-align: center;
    color:white;
    font-family: "Roboto", sans-serif;
}

#top-middle-div{
    position:relative; 
    color:white; 
    font-weight:normal; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

#write-toggle-wrapper{
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.center a{
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    vertical-align: middle;
    height:100%;
    font-size:20px;
    color:black;
}

.right {
    display: flex;
    align-items: center;
    float: right;
    text-align: right;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    color: white;
    margin-left: 25px;
}

.multi-mon-right {
    display:flex;
    float:right;
    text-align:right;
    align-items: center;
    font-family: "Roboto", sans-serif;
    font-size:18px;
    color:white;
    padding-top: 0px;
    flex-direction: row;
    justify-content: flex-end;
}

.dropdown-icon {
    width:25px;
    vertical-align: middle;
}
.topbar-pin-button {
    position: relative;
    top: 2px;
    margin-left: 5px;
    cursor: pointer;
}

.topbar-pin-button-opaque {
    opacity: 0.3;
}

.topbar-pin-button-solid {
    opacity: 1;
}
.right .user-name{
    vertical-align:middle;
    padding-right:40px;
}

.multi-mon-user-name{
    padding-right: 0px;
    margin-right: 8px;
    align-self: center;
}

.content {
    background: #ededed;
    margin:-5px;
}

.cancel-button {
    display: block;
    margin: 0 auto;
    background-color: white;
    font-family: "Roboto", sans-serif;
    outline: 0;
    border: 1px solid #009bba;
    padding: 10px 50px;
    color: #009bba;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

#loading-device-access { /* same attrs as statistics-item's */
    display: none;
    float: left;
    background-color: white;
    padding: 10px;
    height: 30px;
}

#loading-device-access-msg {
    float: left;
    margin-top: 6px;
    color: #009bba;
    text-align: center;
    font-size: 13px;
    font-weight: 300;
}

input[type='radio']{
    width: 30;
    height: 30;
    position: relative;
    top:7;
    margin-right: 10;
}

select {
    height: 30; 
    font-size: 18; 
    color: #333;
}

.label{
    font-size: 18; 
    color: #333;
}

.label-desc{
    font-size: 14; 
    color: gray;
    position:relative; 
    left:45;
    padding-right: 48;
}

.recording-status{
    vertical-align:middle;
    cursor:auto; 
    position:relative; 
    top: 3px; 
    height:33px; 
    width: 36px;
}

.readonly-status{
    vertical-align:middle;
    cursor:auto; 
    position:relative; 
    top: -1px; 
    height:20px; 
    width: fit-content;
    margin: 5px;
    background-color: #666;
    border-radius: 5px;
    padding: 5px;
    font-size: 12px;
    align-content: center;
}
.readwrite-status{
    vertical-align:middle;
    cursor:auto; 
    position:relative; 
    top: -1px; 
    height:20px; 
    width: 20px;
    margin: 5px;
    background-color: rgb(166, 87, 77);
    border-radius: 5px;
    padding: 2px;
    font-size: 12px;
}

#upload-progress-wrapper{
    background: #fff;
    border-radius: 3px;
    min-width: 500px;
    font-size: 12px;
    color: black;
    display: none;
    opacity: 0.8;
    border: 1px solid royalblue;
    padding: 5px;
}

#upload-progress-bar{
    background: green;
    color: #054460;
    overflow: auto;
    opacity: 0.3;
    position: absolute;
}

#cancel-upload{
    position: relative;
    top: -8px;
    display:none;
    color:#333;
    z-index: 10;
}

.line-separator {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #c2c8d0;
    line-height: 0.1em;
    margin: 25px 0;
}

.text-between-line {
    background: #fff;
    padding: 0 10px;
    font-size: 14px;
    color: #2d333a;
    font-weight: 400;
}

.account-help-wrapper {
    font-size: 10px;
    width: 100%;
}

.account-help-wrapper span {
    float: right;
    color: #1dc7ea;
}

.account-help-wrapper span:hover {
    color: #42d0ed;
    cursor: pointer;
}

#btn-send-keys{
    cursor: pointer;
    position: relative;
}

.key-btn-wrapper{
    display: flex;
    height: 42px;
    position: absolute;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #cdcfd2;
    left: 50%;
    top: 240%;
    transform: translate(-50%, -50%);
    /* to ensure key buttons always appear on top https://stackoverflow.com/questions/491052/minimum-and-maximum-value-of-z-index */
    z-index: 2147483647
}

#txt-send-keys{
    height: 26px;
    width: 60px;
    border: 1px solid lightblue;
    position: relative;
    top: 5px;
    font-size: medium;
    /* right: -3px; */
    text-align: center;
    font-size: 16px;
@media (max-width: 1200px) {
    top: 6px;
    height: 18px;
}
}

#txt-send-keys:focus{
    border: 1px solid lightblue;
    outline-color: lightblue;
}

#txt-send-keys-fg{
    z-index: 100;
    position: absolute;
    font-size: 18px;
    color: gray;
    left: 35px;
    width: 40px;
    margin-top: 8px;
    overflow: hidden;
}

.close-keys-span{
    position: relative;
    cursor: pointer;
    top: 4px;
    color: #cccccc;
}

label.label-checkbox {
    cursor: pointer;
    /* font-weight: bold; */
    font-size: 12px;
}
  
label.label-checkbox input {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
    border: 1px solid #ccc;
}

label.label-checkbox span:hover {
    color: #007c95;
    background-color: #ffffff;
    border: 1px solid #007c95
}

label.label-checkbox span:active {
    background: #ccc;
}

label.label-checkbox span {
    padding: 4px;
    border: 1px solid #009bba;
    display: inline-block;
    color: #009bba;
    border-radius: 4px;
    margin: 4px;
    background: #fff;
    user-select: none;
    position: relative;
    top: 3px;
    left: 4px;
}
  
label.label-checkbox input:checked + span {
    box-shadow: inset 1px 2px 5px #777;
    transform: translateY(1px);
    background: #e5e5e5;
}

.multi-mon-popup-wrapper {
    color: #004361;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.multi-mon-popup-message {
    width: 615px;
}

.topbar-unhide-arrow {
    border-radius: 6px;
    position: relative;
    top: 33px;
    left: -34%;
    transform: translateX(-50%);
    white-space: normal;
    transition: all 1s;
    background: #054460;
    border-left-width: 15px;
    border-left-style: solid;
    border-right-width: 15px;
    border-right-style: solid;
    border-color: #054460;
}

.topbar-unhide-arrow-icon {
    width: 30px;
    margin: auto;
}

#focus-device-home {
    outline: none;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#focus-device-home:active {
    outline: 1px solid #fefefe;
    outline-offset: 0;
}

.back-area {
    margin-left: 8px;
}

#btn-send-keys-tooltip {
    visibility: hidden;
    background-color: #444444;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    bottom: -150%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
}

#btn-send-keys-wrapper:hover #btn-send-keys-tooltip {
    visibility: visible;
    transition-delay: 1s;
}

#hot-keys-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 150px;
    border-radius: 5px;
    text-align: center;
    top: 40px; /* Adjust as needed */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%);
    font-family: 'Courier New', Courier, monospace;
    font-size: 10pt;
}

#hot-keys-menu ul {
    list-style: none;
    text-align: left;
    margin: 10pt;
    padding: 0;
    line-height: 16pt;
}

#hot-keys-menu li {
    padding: 2px;
    margin-right: 10px;
    margin-left: 10px;
    cursor: pointer;
    color: #004361;
}

#hot-keys-menu li:hover {
    background-color: #80e4ff;
}

#hot-keys-menu:focus {
    outline: none; /* Remove default focus outline */
    border-color: #0078D4;
}
#rdpft-upload-btn-tooltip {
    visibility: hidden;
    background-color: #444444;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    bottom: -150%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
}

#rdpft-upload-btn-wrapper:hover #rdpft-upload-btn-tooltip {
    visibility: visible;
    transition-delay: 0.1s;
}

.toast {
    display: none;
    align-items: center;
    position: fixed;
    bottom: 60px;
    right: 30px;
    background-color: rgba(150,225,255,0.5);
    color: #000;
    padding: 4px;
    border-radius: 1px;
    box-shadow: 0 1px 1px rgba(43, 111, 135, 1);
    animation: fadeIn 0.95s forwards;
    font-family: arial;
    font-size: 12px;
}

.toast-icon img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    margin-left: 10px;
}

.toast-body {
    display: flex;
    align-items: center;
}

.loading-toast {
    border: 2px solid #3498db;
    border-top: 2px solid #eee;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

#autologin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: auto;
}

#autologin-overlay-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #c1c0c0;
    border-top: 4px solid #24c3f9;
    border-radius: 50%;
    animation: autologin-spin 1s linear infinite;
    margin-bottom: 16px;
}

#autologin-overlay-text {
    color: #ffffff;
    font-size: 18px;
    font-family: Roboto, sans-serif;
    text-align: center;
}

@keyframes autologin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}