@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-toolbar {
    position: sticky;
    top: 0;
    z-index: 6;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
}

.dashboard-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-panel {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.panel-scroll {
    max-height: 320px;
    overflow: auto;
}

.panel-scroll-lg {
    max-height: 420px;
    overflow: auto;
}

.pager-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #343a40;
    color: #fff;
}

.table-wrap {
    overflow-x: auto;
}

.text-break-all td,
.text-break-all th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.metric-card {
    min-height: 100%;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.health-reason {
    line-height: 1.2;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#components-reconnect-modal {
    background: rgba(20, 24, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    color: #f5f7fb;
    display: none;
    left: auto;
    padding: 0.65rem 1rem;
    position: fixed;
    right: 1rem;
    z-index: 1100;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
}

#components-reconnect-modal.components-reconnect-show {
    display: inline-flex;
}

#components-reconnect-modal.components-reconnect-failed {
    background: rgba(147, 25, 25, 0.96);
}

.reconnect-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #4dabf7;
    box-shadow: 0 0 0 0 rgba(77, 171, 247, 0.55);
    animation: reconnect-pulse 1.5s infinite;
}

@keyframes reconnect-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 171, 247, 0.55);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(77, 171, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(77, 171, 247, 0);
    }
}

#blazor-error-ui {
    background: #151922;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.55rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #f5f7fb;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.45rem;
        color: #f5f7fb;
        text-decoration: none;
    }
