@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overscroll-behavior-y: contain;
}

a, .btn-link {
    color: #0366d6;
}

/*.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: black;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/* QR code generator */
#qrCode {
    margin: 15px;
}
    #qrCode img {
        border-width: 3px;
        border-style: solid;
        border-color: white;
    }



footer {
    overflow: hidden !important;
}

input[type="checkbox"] {
    height: 1.3em;
    width: 1.3em;
}

input[disabled], input[readonly], select[disabled] {
    background-color: #adadad !important;
}

.pointer {
    cursor: pointer;
}

#components-reconnect-modal {
    color: black;
}

:root {
    --varyx-navy-950: #071413;
    --varyx-navy-900: #0d211f;
    --varyx-navy-800: #163331;
    --varyx-blue: #455e93;
    --varyx-blue-600: #355182;
    --varyx-teal: #12695c;
    --varyx-teal-700: #0d554b;
    --varyx-red: #d84c3f;
    --varyx-gold: #d9a72f;
    --varyx-ink: #14211f;
    --varyx-muted: #64706c;
    --varyx-surface: #ffffff;
    --varyx-surface-2: #f3f7f3;
    --varyx-surface-3: #eef4ef;
    --varyx-border: #d8ded8;
    --varyx-shadow: 0 18px 45px rgba(18, 33, 31, 0.08);
}

html,
body {
    background: var(--varyx-surface-2);
    color: var(--varyx-ink);
    line-height: 1.45;
}

a,
.btn-link {
    color: var(--varyx-blue-600);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--varyx-ink);
    font-weight: 750;
}

.content {
    min-height: 100vh;
    padding-bottom: 2.25rem;
}

.content > .py-3,
.content > div:first-child {
    max-width: 1560px;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-primary {
    background: var(--varyx-teal);
    border-color: var(--varyx-teal);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 105, 92, 0.15);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--varyx-teal-700);
    border-color: var(--varyx-teal-700);
    color: #ffffff;
}

.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
    background-color: #ffffff;
    border-color: var(--varyx-border);
    color: var(--varyx-ink);
}

.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: var(--varyx-surface-3);
    border-color: var(--varyx-teal);
    color: var(--varyx-ink);
}

.btn-danger {
    border-color: #d64545;
}

.form-control,
.form-select,
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]) {
    border-color: #cbddea;
    border-radius: 6px;
    color: #12233c;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: var(--varyx-teal);
    box-shadow: 0 0 0 0.18rem rgba(19, 200, 202, 0.18);
}

input[disabled],
input[readonly],
select[disabled],
textarea[readonly] {
    background-color: #e6eef5 !important;
    color: #44556a !important;
}

.card,
.modal-content,
.dropdown-menu {
    border-color: var(--varyx-border);
    border-radius: 8px;
    box-shadow: var(--varyx-shadow);
}

.card {
    background: rgba(255, 255, 255, 0.96);
}

.card-header {
    background-color: var(--varyx-surface-3);
    border-bottom-color: var(--varyx-border);
}

.table {
    border-color: var(--varyx-border);
    color: var(--varyx-ink);
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--varyx-border);
    padding: 0.65rem 0.75rem;
}

.table thead th {
    color: var(--varyx-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table-dark {
    --bs-table-bg: #071a3a;
    --bs-table-striped-bg: #092149;
    --bs-table-hover-bg: #0b2b5c;
    --bs-table-border-color: rgba(142, 234, 240, 0.18);
    color: #f8fbff;
}

.table-info {
    --bs-table-bg: #dff8fb;
    --bs-table-striped-bg: #d4f3f7;
    --bs-table-hover-bg: #c9eef4;
    color: #061a40;
}

.badge.bg-primary {
    background-color: var(--varyx-teal) !important;
}

.badge.bg-info {
    background-color: var(--varyx-teal) !important;
}

.text-info {
    color: var(--varyx-blue-600) !important;
}

.text-muted {
    color: var(--varyx-muted) !important;
}

.device-card {
    border: 1px solid #d6e7f3;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(6, 26, 64, 0.08);
}

.device-card .card-header {
    background:
        linear-gradient(135deg, rgba(13, 33, 31, 0.98), rgba(22, 51, 49, 0.96));
    border-bottom-color: rgba(18, 105, 92, 0.28);
    color: white;
}

.device-card .card-body {
    background-color: #ffffff;
}

.device-card .small.text-muted {
    color: #9ddce6 !important;
}

.auth-page {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(18, 105, 92, 0.08), rgba(69, 94, 147, 0.06)),
        #f7faf8;
    border: 1px solid rgba(216, 222, 216, 0.76);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 4rem);
    padding: 1.5rem;
}

.auth-panel {
    background: #ffffff;
    border: 1px solid var(--varyx-border);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(20, 33, 31, 0.12);
    max-width: 440px;
    padding: 2rem;
    width: 100%;
}

.auth-logo {
    display: block;
    height: auto;
    margin: 0 auto 1.25rem;
    max-width: 260px;
    width: 78%;
}

.auth-heading {
    margin-bottom: 1.25rem;
    text-align: center;
}

.auth-heading h1 {
    font-size: 1.65rem;
    margin-bottom: 0.2rem;
}

.auth-heading p {
    color: var(--varyx-muted);
    margin-bottom: 0;
}

.auth-panel a {
    font-weight: 700;
    text-decoration: none;
}

.auth-panel .btn-primary {
    min-height: 3rem;
}

.auth-panel p {
    margin-bottom: 0.55rem;
}

.auth-panel p:first-child {
    margin-top: 1rem;
}

.eyebrow {
    color: var(--varyx-teal);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.tool-page {
    padding: 0.35rem 0 1.25rem;
}

.tool-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tool-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.empty-state {
    align-items: center;
    background: var(--varyx-surface-2);
    border: 1px dashed var(--varyx-border);
    border-radius: 8px;
    color: var(--varyx-muted);
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 320px;
    padding: 1rem;
    text-align: center;
}

.ssh-command-input {
    min-height: 164px;
    resize: vertical;
}

.ssh-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.ssh-output-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ssh-output {
    background: #0d211f;
    border: 1px solid rgba(18, 105, 92, 0.42);
    border-radius: 8px;
    color: #e9fff8;
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
    min-height: 320px;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.validation-errors,
.validation-message {
    color: var(--varyx-red);
}

.operations-page {
    max-width: 1560px;
    padding: 1.25rem 0 2.5rem;
}

.dashboard-hero {
    align-items: center;
    background:
        url('/images/varyx-assist-mark-512.png') right 2rem center / 220px auto no-repeat,
        linear-gradient(120deg, rgba(13, 33, 31, 0.98), rgba(22, 51, 49, 0.95));
    border: 1px solid rgba(216, 222, 216, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(20, 33, 31, 0.14);
    color: #ffffff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    min-height: 184px;
    overflow: hidden;
    padding: 1.45rem;
}

.dashboard-hero h1,
.dashboard-hero p {
    color: #ffffff;
}

.dashboard-hero h1 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    margin-bottom: 0.4rem;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 760px;
}

.dashboard-hero .eyebrow {
    color: var(--varyx-gold);
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    min-width: 280px;
}

.dashboard-hero-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.42rem;
}

.metric-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.metric-tile {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--varyx-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 33, 31, 0.07);
    display: flex;
    gap: 0.9rem;
    min-height: 112px;
    padding: 1rem;
}

.metric-icon {
    align-items: center;
    background: #eef4ef;
    border-radius: 8px;
    color: var(--varyx-teal);
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.metric-label {
    color: var(--varyx-muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.metric-value-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.metric-value {
    color: var(--varyx-ink);
    font-size: 1.7rem;
    font-weight: 850;
    line-height: 1;
}

.metric-accent-success .metric-icon { color: var(--varyx-teal); }
.metric-accent-neutral .metric-icon { color: #64706c; }
.metric-accent-gold .metric-icon { color: var(--varyx-gold); }
.metric-accent-blue .metric-icon { color: var(--varyx-blue); }

.portal-section-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.portal-panel,
.workbench-panel,
.landing-feature {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--varyx-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 33, 31, 0.07);
}

.portal-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 178px;
    padding: 1rem;
}

.portal-panel-primary {
    border-color: rgba(18, 105, 92, 0.32);
}

.portal-panel-heading {
    display: flex;
    gap: 0.85rem;
}

.portal-panel-icon {
    align-items: center;
    background: #eef4ef;
    border-radius: 8px;
    color: var(--varyx-teal);
    display: inline-flex;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    justify-content: center;
}

.portal-panel h2,
.workbench-panel h2,
.landing-feature h2 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.portal-panel p,
.landing-feature p {
    color: var(--varyx-muted);
    margin-bottom: 0;
}

.portal-panel .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.workbench-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
}

.workbench-panel {
    padding: 1rem;
}

.section-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.shortcut-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shortcut-tile {
    align-items: center;
    background: #f7faf8;
    border: 1px solid var(--varyx-border);
    border-radius: 8px;
    color: var(--varyx-ink);
    display: flex;
    font-weight: 800;
    gap: 0.6rem;
    min-height: 54px;
    padding: 0.75rem;
    text-decoration: none;
}

.shortcut-tile:hover {
    border-color: rgba(18, 105, 92, 0.38);
    color: var(--varyx-teal);
}

.shortcut-tile .oi {
    color: var(--varyx-blue);
}

.package-table {
    margin-bottom: 0;
}

.public-landing {
    max-width: 1560px;
    padding: 1.2rem 0 2.5rem;
}

.public-hero {
    align-items: center;
    background:
        url('/images/varyx-assist-brand.png') right 2rem center / min(40vw, 420px) auto no-repeat,
        linear-gradient(110deg, rgba(13, 33, 31, 0.98), rgba(22, 51, 49, 0.9));
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(20, 33, 31, 0.18);
    display: flex;
    min-height: min(520px, calc(100vh - 190px));
    overflow: hidden;
    padding: clamp(1.6rem, 4vw, 3rem);
}

.public-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.public-hero h1 {
    color: #ffffff;
    font-size: clamp(2.05rem, 5vw, 4rem);
    line-height: 1.02;
    margin-bottom: 0.9rem;
}

.public-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2vw, 1.22rem);
    margin-bottom: 1.25rem;
    max-width: 680px;
}

.public-hero .eyebrow {
    color: var(--varyx-gold);
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.landing-feature-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.9rem;
}

.landing-feature {
    min-height: 178px;
    padding: 1.1rem;
}

.landing-feature .oi {
    align-items: center;
    background: #eef4ef;
    border-radius: 8px;
    color: var(--varyx-teal);
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    margin-bottom: 0.8rem;
    width: 2.5rem;
}

.client-setup-page {
    max-width: 1560px;
}

.setup-hero {
    align-items: center;
    background:
        url('/images/varyx-assist-mark-512.png') right 1.4rem center / 170px auto no-repeat,
        linear-gradient(120deg, rgba(13, 33, 31, 0.98), rgba(22, 51, 49, 0.94));
    border: 1px solid rgba(216, 222, 216, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(20, 33, 31, 0.14);
    color: #ffffff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    min-height: 170px;
    overflow: hidden;
    padding: 1.35rem;
}

.setup-hero h1,
.setup-hero p {
    color: #ffffff;
}

.setup-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.35rem;
}

.setup-hero p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 760px;
}

.setup-hero .eyebrow {
    color: var(--varyx-gold);
}

.setup-hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.setup-hero-actions {
    justify-content: flex-end;
    min-width: 260px;
}

.setup-hero-actions .btn,
.button-row .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.setup-alert {
    border-color: rgba(18, 105, 92, 0.24);
    border-radius: 8px;
}

.setup-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.command-card,
.package-section {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--varyx-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 33, 31, 0.07);
}

.command-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem;
}

.command-card-header {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.command-card h2,
.package-section h2 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.command-card p {
    color: var(--varyx-muted);
    margin: 0;
}

.command-icon {
    align-items: center;
    background: #eef4ef;
    border-radius: 8px;
    color: var(--varyx-teal);
    display: inline-flex;
    flex: 0 0 2.55rem;
    height: 2.55rem;
    justify-content: center;
}

.command-label {
    color: var(--varyx-muted);
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.command-card pre {
    background: #0d211f;
    border: 1px solid rgba(18, 105, 92, 0.42);
    border-radius: 8px;
    color: #e9fff8;
    font-size: 0.8rem;
    line-height: 1.45;
    min-height: 86px;
    overflow-x: auto;
    padding: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.command-card > .btn,
.command-card > .button-row {
    margin-top: auto;
}

.package-section {
    margin-bottom: 1rem;
    padding: 1rem;
}

@media (max-width: 760px) {
    .tool-header {
        display: block;
    }

    .tool-header-actions {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
}

@media (max-width: 1100px) {
    .metric-grid,
    .portal-section-grid,
    .landing-feature-grid,
    .setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workbench-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: flex-start;
        display: block;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .setup-hero {
        align-items: flex-start;
        display: block;
    }

    .setup-hero-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

@media (max-width: 760px) {
    .metric-grid,
    .portal-section-grid,
    .shortcut-grid,
    .landing-feature-grid,
    .setup-grid {
        grid-template-columns: 1fr;
    }

    .public-hero {
        background:
            url('/images/varyx-assist-brand.png') right 1rem bottom 1rem / 220px auto no-repeat,
            linear-gradient(110deg, rgba(13, 33, 31, 0.98), rgba(22, 51, 49, 0.92));
        min-height: 430px;
    }

    .setup-hero {
        background:
            url('/images/varyx-assist-mark-512.png') right 1rem bottom 1rem / 150px auto no-repeat,
            linear-gradient(120deg, rgba(13, 33, 31, 0.98), rgba(22, 51, 49, 0.94));
    }
}

@media (max-width: 640.98px) {
    .auth-page {
        align-items: flex-start;
        min-height: auto;
    }

    .auth-panel {
        padding: 1.25rem;
    }
}
body.legal-acceptance-required .page,
body.legal-acceptance-required .container {
    pointer-events: none;
    filter: blur(2px);
}

.legal-acceptance-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.74);
}

.legal-acceptance-panel {
    display: grid;
    gap: 16px;
    width: min(940px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    border: 1px solid #d8e1ef;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    color: #102033;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.legal-acceptance-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.legal-acceptance-head h2,
.legal-kicker {
    margin: 0;
}

.legal-acceptance-head h2 {
    font-size: 1.35rem;
}

.legal-acceptance-head span,
.legal-kicker {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-terms {
    display: grid;
    gap: 10px;
    max-height: 240px;
    overflow: auto;
    border: 1px solid #d8e1ef;
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.5;
}

.legal-terms p {
    margin: 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.legal-grid label,
.legal-check {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
}

.legal-grid .wide {
    grid-column: 1 / -1;
}

.legal-grid input,
.legal-grid textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: #102033;
}

.legal-check {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.legal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.legal-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    background: #0f766e;
    color: #fff;
    font-weight: 900;
}

@media (max-width: 720px) {
    .legal-acceptance-head,
    .legal-actions {
        display: grid;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }
}
