﻿:root {
    --nx-fg-blue: #7298ff;
    --nx-bg: #384357 !important;
    --nx-bg-accent: #676980 !important;
    --nx-fg: #fff !important;
    --nx-fg-accent: #fff !important;
    --nx-box-shadow: none !important;
    --nx-muted: #9c9fa7 !important;
    --nx-fg-red: #f87070;
    --nx-fg-green: #44ff88;
}



.card {
    background-color: #384357;
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-radius: 12px;
    border: 1px solid #e2e8f018;
    box-shadow: 0 .46875rem 2.1875rem rgba(31.5, 53, 108, .03), 0 .9375rem 1.40625rem rgba(31.5, 53, 108, .03), 0 .25rem .53125rem rgba(31.5, 53, 108, .05), 0 .125rem .1875rem rgba(31.5, 53, 108, .03);
    padding: 1rem;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    color:#fff;
}
.card h2 {
    font-size: 25px;
    font-weight: 600;
    color: #fff;
    margin: 0px;
}
.card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #80858f;
    margin: 0px;
}
.separator {
    border-bottom: 2px solid rgb(0 0 0 / 11%);
    border-radius: 0px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/*Dark Theme*/
body {
    background: #181922 !important;
}
h1 {
    color: #fff;
    font-weight: 500 !important;
}
h2 {
    color: #fff;
    font-weight: 500 !important;
}
h3 {
    color: #fff;
    font-weight: 500 !important;
}
h4 {
    color: #fff;
    font-weight: 500 !important;
}
label {
    color:#fff;
}
.nx-pagelayout {
    background-color: #181922;
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}
.nx-pagelayout-header {
    background-color: #384357 !important;
    color: #fff;
}
.nx-pagelayout-scroll {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
/*buttons*/
button {
    background: #676980 !important;
    box-shadow: none !important;
    color: #fff !important;
    transition: 0.3s;
}
button:hover {
    background-color: #181922!important;
}
    button:hover a:hover {
        background-color: #181922 !important;
    }
/*sidebar*/
.nx-mainmenu {
    background-color: #384357 !important;
    border-right: 0px !important;
}
.nx-mainmenu-content a {
    justify-content: left;
    box-shadow: none;
   
    color: #fff;
}
a.nav-link:hover {
    background-color: #181922 !important;
}
.nx-mainmenu-content .nx-accordion {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0px !important;
    color:#fff!important;
}
.nx-mainmenu-content .nx-accordion-header {
    color: #fff;
    box-shadow: none !important;
}
.nx-mainmenu-content .nx-accordion-content {
    background: #384357 !important;
    border-top: 0px !important;
}
.nx-mainmenu-content .nx-accordion-header:focus {
    outline: 0px !important;
}
.nx-mainmenu-content .nx-accordion.open .nx-accordion-chevron {
    color: #9c9fa7 !important;
}
/*Telemetry Devices*/
.container-card {
    background-color: #384357;
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-radius: 12px;
    border: 1px solid #e2e8f018;
    box-shadow: 0 .46875rem 2.1875rem rgba(31.5, 53, 108, .03), 0 .9375rem 1.40625rem rgba(31.5, 53, 108, .03), 0 .25rem .53125rem rgba(31.5, 53, 108, .05), 0 .125rem .1875rem rgba(31.5, 53, 108, .03);
    padding:15px;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}
.container-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding-bottom:10px;
    border-bottom: 2px solid #ffffff20;
}
.container-card h3 {
    color: #fff;
    margin:0px;
}

/*table nx-table*/
.nx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #e0e0e0;
    background-color: #384357;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.nx-table thead {
    background-color: #1a1a1a;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.8px;
}
.nx-table thead th {
    background: #384357;
}
.nx-table th,
.nx-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f018;
}
.nx-table tbody tr {
    transition: background-color 0.2s ease;
}
.nx-table tbody tr:last-child {
    border-bottom: none;
}

/* Negative values in red, positive in green */
.nx-table td:nth-child(3) {
    font-weight: 600;
    text-align: right;
}
.nx-table td:nth-child(3):before {

    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.nx-table tr td:nth-child(3):contains("-") {
    color: #ff4444;
}
.nx-table tr td:nth-child(3):contains("-"):before {
    background-color: #ff4444;
}
/* For positive values (if any in future) */
.nx-table tr td:nth-child(3):not(:contains("-")) {
    color: #44ff88;
}
.nx-table tr td:nth-child(3):not(:contains("-")):before {
    background-color: #44ff88;
}
/*inputs*/
.nx-input {
    --nx-bg: #384357 !important;
    --ns-fg: #fff !important;

    color: #ffffff;
}
.nx-input input {
    color: #ffffff;
}
.nx-input .nx-input-dropdown .highlighted {
    background-color: #ffffff21!important;
}
.nx-input .nx-input-dropdown li:hover {
    background-color: #ffffff21 !important;
}
.nx-input .nx-input-dropdown {
    color:#fff;
}
.nx-input label {
    color:#fff;
}
.nx-switch-inner.nx-switch-on .nx-switch-track {
    background-color: hsl(234deg 17.24% 11.37%);
}
.nx-input .nx-input-content {
    color:#fff;
}
.nx-input textarea {
    color: #fff;
}
select.nx-select {
    background-color: #3d4059;
    color: #fff;
    border: 0px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #e2e8f018 !important;
}
.nx-select {
    width:100%;
    min-height:35px;
}
.editor.nx-input {
    width: 100%;
    min-height: 35px;

}
/*accordion*/
.nx-accordion {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0px !important;
    color: #fff !important;
}

.nx-accordion-header {
    color: #fff;
    box-shadow: none !important;
}

.nx-accordion-content {
    background: #384357 !important;
    border-top: 0px !important;
}
.nx-accordion.open .nx-accordion-content {
    background: #384357 !important;
    border-radius:10px!important;
}
.nx-accordion-header:focus {
    outline: 0px;
}

.nx-accordion.open .nx-accordion-chevron {
    color: #6b7280 !important;
}
/*tables global*/
thead {
    background-color: #1a1a1a;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.8px;
}
thead th {
    background: #384357!important;
}
table {
    border: 0px !important;
}
tbody {
    background: #384357 !important;
    color:#fff;
}
th, td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f018!important;
}
tbody tr {
    transition: background-color 0.2s ease;
}
tbody tr:last-child {
    border-bottom: none;
}





