:root {
    --hc-primary: #0d6efd;
    --hc-green: #3bb273;
    --hc-amber: #f59f00;
    --hc-red: #e03131;
    --hc-blue: #0d6efd;
    --hc-muted: #6c757d;
}

main.container-fluid {
    padding-top: .5rem;
}

.hc-toolbar {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
}

.hc-lastrefresh {
    font-size: .9rem;
    color: var(--hc-muted);
    display: flex;
    gap: .35rem;
    align-items: center;
}

.table-monitor thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-bottom: 2px solid #e9ecef;
}

.table-monitor tbody tr:hover {
    background: #f8f9fa;
}

.table-monitor td:first-child {
    font-weight: 500;
}

.hc-legend i {
    margin: 0 .35rem 0 .75rem;
}

.hc-detail-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    padding: 1rem 1.25rem;
}

.hc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.hc-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #cfe2ff;
    border-top-color: var(--hc-primary);
    border-radius: 50%;
    animation: hcspin 1s linear infinite;
}

@keyframes hcspin {
    to {
        transform: rotate(360deg)
    }
}

/* Blue custom scrollbar */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

*::-webkit-scrollbar-track {
    background: #f1f3f5
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#74b0ff,#1c7ed6);
    border-radius: 8px;
    border: 2px solid #f1f3f5;
}

    *::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg,#4dabf7,#1971c2)
    }

* {
    scrollbar-width: thin;
    scrollbar-color: #1c7ed6 #f1f3f5
}

/* existing color classes you already had */
.color-windows {
    color: #01AFF1;
}

.color-angular {
    color: #DD0031;
}

.color-es {
    color: #0bcf15;
}

.color-anas {
    color: #F08F0F;
}

.color-healthy {
    color: rgba(85,163,98,1);
}

.color-degraded {
    color: rgba(214,127,60,1);
}

.color-unhealthy {
    color: rgba(205,74,69,1);
}

.color-unknown {
    color: rgba(0,120,212,1)
}

.color-unavailable {
    color: red;
}

.hoverable-icon:hover {
    cursor: pointer;
    font-size: 30px;
}
body {
    background: #f6f8fa;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* toolbar */
.hc-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: .5rem 1rem;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.btn-refresh {
    background: var(--hc-primary);
    color: #fff;
    border: none;
    padding: .4rem .9rem;
    border-radius: .4rem;
}

    .btn-refresh:hover {
        background: #0b5ed7;
    }

/* summary bar */
.hc-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hc-summary-item {
    flex: 1;
    padding: .75rem;
    border-radius: .5rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

    .hc-summary-item span {
        font-size: 1.2rem;
    }

    .hc-summary-item.healthy {
        background: #3bb273;
    }

    .hc-summary-item.degraded {
        background: #f59f00;
    }

    .hc-summary-item.unhealthy {
        background: #e03131;
    }

    .hc-summary-item.unavailable {
        background: #8e44ad;
    }

    .hc-summary-item.unknown {
        background: #3498db;
    }

/* card containers */
.hc-card {
    background: #fff;
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.hc-detail-card {
    background: #fff;
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.hc-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: .5rem;
}

.hc-env {
    font-size: .8rem;
    background: #0d6efd;
    color: #fff;
    padding: .2rem .6rem;
    border-radius: .4rem;
}

/* table */
.table-monitor thead th {
    background: #f1f3f5;
    font-weight: 600;
}

.table-monitor tbody tr:nth-child(even) {
    background: #fafafa;
}

.table-monitor td:first-child {
    font-weight: 500;
}
/* --- Modern Navbar --- */
.navbar-modern {
    /* soft blue gradient */
    background: linear-gradient(90deg, #0d6efd 0%, #0b5ed7 45%, #094db4 100%);
}

    /* slim shadow already added via shadow-sm on the element */
    .navbar-modern .navbar-brand {
        font-weight: 600;
        letter-spacing: .2px;
    }

    .navbar-modern .nav-link {
        position: relative;
        color: rgba(255,255,255,.9);
        font-weight: 500;
        display: inline-flex;
        align-items: center;
    }

        .navbar-modern .nav-link .fa-solid {
            opacity: .9;
        }

        /* animated underline on hover/focus */
        .navbar-modern .nav-link::after {
            content: "";
            position: absolute;
            left: .5rem;
            right: .5rem;
            bottom: .2rem;
            height: 2px;
            background: rgba(255,255,255,.35);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .18s ease-in-out;
            border-radius: 2px;
        }

        .navbar-modern .nav-link:hover::after,
        .navbar-modern .nav-link:focus::after {
            transform: scaleX(1);
        }

        /* active tab: brighter + solid underline */
        .navbar-modern .nav-link.active {
            color: #fff !important;
        }

            .navbar-modern .nav-link.active::after {
                background: #fff;
                transform: scaleX(1);
            }

/* right-side capsule badge */
.hc-pill {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    padding: .35rem .6rem;
    border-radius: 999px;
    backdrop-filter: saturate(140%) blur(2px);
}

/* ensure page content has a bit of breathing room under sticky navbar */
main.container-fluid {
    padding-top: .75rem;
}
