/*
 * narrowin-theme.css
 * Centralized theme overrides for the narrowin controller UI.
 * Replaces per-page <style> blocks with a single source of truth.
 */

/* -- Card box shadow (nodebox, collectorbox) -- */

#nodebox,
#collectorbox {
    -webkit-box-shadow: inset -34px -34px 70px -71px rgba(209,209,209,0.6);
    -moz-box-shadow: inset -34px -34px 70px -71px rgba(209,209,209,0.6);
    box-shadow: inset -34px -34px 70px -71px rgba(209,209,209,0.6);
    border-right: 1px solid rgba(24,28,33,0.06);
}
#nodebox:hover,
#collectorbox:hover {
    -webkit-box-shadow: inset -34px -34px 70px -80px rgba(150,150,150,1);
    -moz-box-shadow: inset -34px -34px 70px -80px rgba(150,150,150,1);
    box-shadow: inset -34px -34px 70px -80px rgba(150,150,150,1);
}

/* -- Form controls -- */

.form-control:disabled,
.form-control[readonly] {
    background-color: #FBFEFF;
    color: #94a3b8;
}
.form-control:focus {
    color: #28c3d7;
}
.form-control {
    color: #1e293b;
}
.custom-select:focus {
    color: #28c3d7;
}
.custom-select {
    color: #334155;
}
.form-label {
    color: #64748b;
}
.opmode:hover {
    border-color: #538EA1;
}
.mainfields {
    font-size: 20px;
    color: #64748b;
}

/* -- Badges -- */

.badge-narrowin {
    background-color: #EFFDFF;
    color: black;
}

/* -- Warning banner (URL/secret mismatch) -- */

.nw-banner-warning {
    background-color: #ea580c;
    color: #fff;
}
.nw-banner-warning a {
    color: #fff;
}
.nw-banner-warning a:hover {
    color: #fed7aa;
}

/* -- Readonly account banner -- */

.nw-banner-readonly {
    background-color: #8897AA;
    color: #fff;
}

/* -- Field mismatch indicator (replaces bg-warning on inputs) -- */

.nw-field-mismatch {
    background-color: #fff7ed !important;
    border-color: #ea580c !important;
    color: #1e293b !important;
}

/* -- Network map -- */

#networkmap {
    width: 100%;
    height: 100%;
    border: 1px solid lightgray;
}
#loading {
    width: 30%;
    position: absolute;
    z-index: 99;
    margin: 0 auto;
    text-align: center;
    left: 0;
    right: 0;
    padding: 20px;
}

/* -- Switcher indicator border -- */

.switcher-indicator {
    border: 1px solid lightgray;
}

/* -- DataTable overrides -- */

.nw-datatable-bordered .table th,
.nw-datatable-bordered .table td,
.nw-datatable-bordered table.dataTable>thead>tr>th,
.nw-datatable-bordered table.dataTable>thead>tr>td {
    border: 0.5px solid #e2e8f0;
}
.nw-datatable-bordered .dataTables_scrollBody {
    border-bottom: none !important;
}

/* -- Range slider (Chrome) -- */

@media screen and (-webkit-min-device-pixel-ratio:0) {
    input[type='range'] {
        overflow: hidden;
        width: 80px;
        -webkit-appearance: none;
        background-color: #dddddd;
        border-radius: 3px;
    }
    input[type='range']::-webkit-slider-runnable-track {
        height: 10px;
        -webkit-appearance: none;
        color: #13bba4;
        margin-top: -1px;
        border-radius: 2px;
    }
    input[type='range']::-webkit-slider-thumb {
        width: 10px;
        -webkit-appearance: none;
        height: 10px;
        cursor: ew-resize;
        background: #434343;
        box-shadow: -80px 0 0 80px #28c3d7;
        border-radius: 4px;
    }
}
/* Firefox */
input[type="range"]::-moz-range-progress {
    background-color: #28c3d7;
}
input[type="range"]::-moz-range-track {
    background-color: #dddddd;
}
/* IE */
input[type="range"]::-ms-fill-lower {
    background-color: #28c3d7;
}
input[type="range"]::-ms-fill-upper {
    background-color: #dddddd;
}

/* -- Segmentation view access boxes -- */

#accessbox_allow {
    background-color: #00cc99;
    -webkit-box-shadow: inset -34px -34px 70px -71px rgba(51,153,102,2);
    -moz-box-shadow: inset -34px -34px 70px -71px rgba(51,153,102,1);
    box-shadow: inset -34px -34px 70px -71px rgba(51,153,102,1);
}
#accessbox_deny {
    background-color: #ff6666;
    -webkit-box-shadow: inset -34px -34px 70px -71px rgba(179,0,0,2);
    -moz-box-shadow: inset -34px -34px 70px -71px rgba(179,0,0,1);
    box-shadow: inset -34px -34px 70px -71px rgba(179,0,0,1);
}

/* -- Node/collector header backgrounds -- */

#nodehader {
    background-image: url('../images/nodebackground.png');
    background-repeat: no-repeat;
}
#collectorhader {
    background-image: url('../images/collectorbackground.png');
    background-repeat: no-repeat;
}

/* -- System page -- */

.nw-system .btn-light {
    border: 1px solid rgba(24,28,33,0.1);
    border-radius: .25rem;
    background-color: #fff;
    color: #4E5155;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.nw-system .badge-narrowin {
    background-color: #F4F4F4;
}

/* -- Utility: muted heading text (replaces inline style="color:#717171") -- */

.nw-text-heading-muted {
    color: #64748b;
}

/* -- Typeahead menu -- */

.tt-menu {
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
}
.tt-selectable {
    cursor: pointer;
}
