:root{
    --pageTitlebackground: #ffffff;
    --pageTitleColor: #172033;
    --offcanvasBackground: #e1e1e1;
    --buttonOffcanvasBackground: #9e9e9e;
    --offcanvasCloseButtonBackground: #e2e2e2;
    --offcanvasCloseButtonBackgroundHover: #b6b6b6;
    --modeOffcanvasSectionBackground: #69a3e1;
    --modeOffcanvasSectionColor: #fff;
    /*--CH1OffcanvasSectionBackground: #f9a149; */
    --CH1OffcanvasSectionBackground: #fbff00;
    --inputCH1OffcanvasSectionColor: #000000;
    --CH2OffcanvasSectionBackground: #245992;
    --inputCH2OffcanvasSectionColor: #fff;
    --hardcopyOffcanvasSectionBackground: #4ef375;
    --normalBoxShadow: rgb(0, 0, 0) 0px 0px 10px;
    --offcanvasBoxShadow: 
}
p, h5{
    user-select: none;
}
body{
    color: #000;
    background-color:rgb(255, 255, 255);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
#background{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: -3;
}
.background-center{
    position: absolute;
    top: -100px;
    left: -70px;
    width: 1400px;
    height: 100vh;
    background-color: rgba(24, 24, 24, 0.8);
    z-index: -2;
}
.navbar{
    display: flex;
    justify-content: space-between; /* Empurra o Seletor para a esquerda e Support para a direita */
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e6eaf0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    height: 72px;
    padding: 0 32px;
    position: relative; 
    z-index: 1000;
    backdrop-filter: blur(14px);
    font-family: 'Ubuntu', Arial, sans-serif;
}
#pageTitle{
    position: absolute;
    left: 50%;
    transform: translateX(-50%); 
    margin: 0;
    height: auto;
    color: var(--pageTitleColor);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.device-manager-floating {
    position: absolute; 
    top: 70px;          
    left: 20px;         
    z-index: 100;       
    
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 14px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    display: none; /* Só aparece quando o modo de aquisição está ativo (ver classe .visible) */
    align-items: center;
    gap: 10px;
}

.device-manager-floating.visible {
    display: flex;
}

.device-manager-floating label {
    color: #64748b;
    font-weight: bold;
    font-size: 15px;
}

#scopeSelect {
    background: #f8fafc;
    color: #172033;
    border: 1px solid #d9e0e9;
    padding: 6px 9px;
    border-radius: 7px;
    cursor: pointer;
}

#scopeSelect:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

#connectionStatus {
    color: #00ff00;
    font-size: 13px;
    font-weight: 500;
}
#support, #labScripts {
    position: static;
    top: 0px;
    right: 80px;
    width: auto;
    height: auto;
    color: #64748b;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    line-height: 1.2;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}
#support:hover, #labScripts:hover {
    color: #172033;
    background: #f1f5f9;
}
.settings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.settings-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.settings-button:hover {
    color: #172033;
    background: #f1f5f9;
    transform: rotate(20deg);
}
.settings-button:focus-visible {
    outline: 3px solid rgba(37, 105, 177, 0.25);
    outline-offset: 2px;
}
.nav-links {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.downloads{
    position: absolute;
    top: 80px;
    left: 20px;
    font-size: 16px;
    font-weight: bold;
    line-height: 50px;
    z-index: 1;
    box-shadow: var(--boxShadow);
}
area {
    cursor: pointer;
}
.signalGenerator{ /* Esta vai ser preciso modificar para ficar algo tipo offcanvas*/
    position: relative;
    margin: 80px;
    top: -100px;
    opacity: 0;
}
.no-scroll {
    overflow: hidden;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    opacity: 0.9;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-back:hover {
    color: #172033;
    background: #f1f5f9;
    opacity: 1;
    text-decoration: underline !important;
}

#versionTag {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 1;
    user-select: none;
}