html, body {
    color: #09090b;
    font-weight: 100;
}

a {
    color: #47b561;
    text-decoration: none;
}
a:hover {
    color: #2a7c3f;
    opacity: 1;
}

.text-primary {
    color: #318f49 !important;
}

.alert-primary {
    background-color: rgba(49, 143, 73, 0.2);
    color: #318f49;
    border-color: #318f49;
}

.badge-primary {
    background-color: #318f49;
    color: #fff;
}

.table {
    color: #ffffff;
    background-color: #1e2b25;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #232b26;
}

.form-control {
    border: 1px solid #3c453f;
}

.form-control:focus {
    border-color: #318f49;
    box-shadow: 0 0 0 0.2rem rgba(49, 143, 73, 0.25);
}

.station-input {
    width: 400px;     /* fixed width */
    max-width: 50%;   /* keeps it from stretching too wide */
}

.connector-input {
    width: 200px;     /* fixed width */
    max-width: 50%;   /* keeps it from stretching too wide */
}

.btn-link {
    text-decoration: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #9a9999 !important;
    font-weight: 200;
}
.btn-primary {
    background-color: #318f49;
    border-color: #318f49;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2a7c3f;
    border-color: #2a7c3f;
    color: #ffffff;
}

.btn-outline-primary {
    color: #318f49;
    border-color: #318f49;
}

.btn-outline-primary:hover {
    background-color: #318f49;
    color: #fff;
}

@media (min-width: 768px) {
    .ms-md-275 {
        margin-left: 275px !important;
    }
    .main-wrapper {
        width: calc(100% - 275px);
    }
}
.text-bg-danger {
    background-color: pink !important;
    color: #09090b !important;
}
.sidebar, .offcanvas, .navbar {
    /*background-color: #212529 !important; */
    background-color: #1e2b25 !important; /* Bootstrap dark */
}
.nav-link-custom {
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 20px;
}

.nav-link-custom.active {
    font-weight: bold;
    color: #fff;
}

.nav-link-custom.disabled {
    opacity: 0.3;
}

.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}
.connector-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border-radius: 999px;
    color: var(--chip-fg);
    /* Keep the tinted container */
    background: color-mix(in srgb, var(--chip-bg) 85%, white);
    padding: 0 10px 0 0;
    box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 1px rgba(16,24,40,.04);
    border: 1px solid rgba(16,24,40,.08);
    font-size: 0.875rem;
    line-height: 1;
}

.connector-chip .chip-left {
    /* Use the same tint as the container so both sides match */
    background: color-mix(in srgb, var(--chip-bg) 85%, white);
    color: var(--chip-fg);
    padding: 6px 10px;
    border-radius: 999px 0 0 999px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}


.connector-chip .chip-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.35);
    margin: 0 10px 0 8px;
    border-radius: 1px;
}

.connector-chip .chip-text {
    font-weight: 600;
    white-space: nowrap;
}

/* Optional: dim chips when station offline */
.card.offline .connector-chip {
    filter: grayscale(0.3) contrast(0.95);
    opacity: 0.8;
}

.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1;
}

.card-body {
    padding: 1.5rem;
}
code, pre, .hljs {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
