@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-VariableFont_slnt,wght.ttf') format('truetype');
    font-weight: 300 1000;
    font-display: swap;
}

@media screen {
    :root {
        --vx-canvas: #edf3f6;
        --vx-panel: #fff;
        --vx-ink: #142e43;
        --vx-muted: #526a7b;
        --vx-line: #d5e2e8;
        --vx-primary: #00695f;
        --vx-primary-hover: #004c46;
        --vx-soft: #dff2eb;
        --vx-focus: #157caa;
        --vx-navy: #102b40;
        --vx-navy-light: #173b4d;
        --vx-warm: #f1c672;
        --vx-radius: 1rem;
        --vx-shadow: 0 12px 32px -26px #13374c7a;
        --grid-ink: var(--vx-ink);
        --grid-muted: var(--vx-muted);
        --grid-line: var(--vx-line);
        --grid-brand: var(--vx-primary);
        --grid-soft: #f1f7f8;
    }

    html:lang(ar) :is(.vx-site, .vx-workspace) { font-family: 'Cairo', Tahoma, Arial, sans-serif; }
    html:lang(en) :is(.vx-site, .vx-workspace) { font-family: Inter, 'Segoe UI', Arial, sans-serif; }
    :is(.vx-site, .vx-workspace) :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, table) { font-family: inherit; }
    :is(.vx-site, .vx-workspace) :is(a, button, input, select, textarea, summary):focus-visible {
        outline: 3px solid var(--vx-focus);
        outline-offset: 3px;
    }

    .vx-workspace {
        background: var(--vx-canvas) !important;
        color: var(--vx-ink);
        --bs-primary: var(--vx-primary);
        --bs-link-color: var(--vx-primary);
        --bs-link-hover-color: var(--vx-primary-hover);
    }

    #sidenav-main[data-unified-navigation] {
        background: linear-gradient(155deg, var(--vx-navy-light), var(--vx-navy) 60%) !important;
        color: #e5eff5;
        border: 1px solid #153c52;
        border-radius: 1.15rem;
        box-shadow: 0 18px 44px -23px #0b263cc9;
    }
    #sidenav-main[data-unified-navigation] #sidenav-collapse-main { background-color: transparent; }

    .archive-file-list .archive-openable { cursor: pointer; }
    .archive-file-list .archive-openable:hover { background-color: #eef6f7; }

    #sidenav-main[data-unified-navigation] .navbar-brand { margin-inline: .65rem; }
    #sidenav-main[data-unified-navigation] .navbar-brand img {
        background: #fff;
        max-width: min(210px, 100%);
        padding: .35rem .55rem;
        border-radius: .75rem;
        object-fit: contain;
    }
    #sidenav-main[data-unified-navigation] :is(.nav-link, .nav-link-text) { color: #e0edf3 !important; }
    #sidenav-main[data-unified-navigation] .nav-link {
        margin-block: .15rem;
        min-height: 39px;
        font-size: .875rem;
        line-height: 1.65;
    }
    #sidenav-main[data-unified-navigation] .nav-link .material-icons { color: #9ddccf !important; }
    #sidenav-main[data-unified-navigation] .nav-link[data-workspace-link]:where(:not([aria-current=page])) {
        background-color: #294858 !important;
        border-radius: .6rem;
    }
    #sidenav-main[data-unified-navigation] .nav-link:is(:hover, [aria-expanded=true]) {
        background: #275365 !important;
        color: #fff !important;
    }
    #sidenav-main[data-unified-navigation] .nav-link[aria-current=page] {
        background: #d8f4e9 !important;
        color: #0c3a34 !important;
        font-weight: 750;
    }
    #sidenav-main[data-unified-navigation] .nav-link[aria-current=page] :is(.material-icons, .nav-link-text) { color: #0c5146 !important; }
    #sidenav-main[data-unified-navigation] :is(.text-dark, .text-secondary, .text-muted) { color: #bad1de !important; }
    #sidenav-main[data-unified-navigation] .material-icons { font-family: 'Material Icons Round'; }

    .vx-workspace .main-content { min-inline-size: 0; min-height: 100vh; color: var(--vx-ink); }
    .vx-workspace .main-content > .container-fluid { padding-inline: clamp(.9rem, 2.25vw, 2.1rem); }
    .vx-workspace .main-content > :is(nav.navbar, #navbarBlur) {
        border: 1px solid var(--vx-line);
        background: #fbfdfe !important;
        box-shadow: var(--vx-shadow) !important;
        border-radius: 1rem;
        margin: .95rem clamp(.85rem, 2vw, 1.6rem) 1.2rem;
    }
    .vx-workspace .main-content :is(h1, h2, h3, h4, h5, h6) { color: var(--vx-ink); text-wrap: pretty; }
    .vx-workspace .main-content h1 { font-size: clamp(1.6rem, 2.4vw, 2.5rem); font-weight: 800; line-height: 1.35; }
    .vx-workspace .main-content :is(h2, h3) { font-weight: 750; }
    .vx-workspace .main-content .muted { color: var(--vx-muted); }
    .vx-workspace .main-content :is(.card, .panel, .table-responsive, details.veritrox-advanced-search) {
        background-color: var(--vx-panel);
        border: 1px solid var(--vx-line);
        border-radius: var(--vx-radius);
        box-shadow: var(--vx-shadow);
    }
    .vx-workspace .main-content :is(.card-header, .card-footer) { background-color: #fbfdfe; border-color: var(--vx-line); }
    .vx-workspace .main-content .card-header:first-child { border-start-start-radius: var(--vx-radius); border-start-end-radius: var(--vx-radius); }
    .vx-workspace .main-content .card-footer:last-child { border-end-start-radius: var(--vx-radius); border-end-end-radius: var(--vx-radius); }
    .vx-workspace .main-content .home-card { inline-size: 100%; block-size: 100%; }
    .vx-workspace .dashboard-summary { row-gap: 1rem; }
    .vx-workspace .dashboard-summary .card-footer { min-block-size: 4rem; }
    .vx-workspace .home-card .dashboard-metric {
        display: flex;
        align-items: flex-start;
        gap: .75rem;
    }
    .vx-workspace .dashboard-metric > .icon {
        flex: none;
        display: grid;
        place-items: center;
        inline-size: clamp(2.5rem, 4vw, 3.4rem);
        block-size: clamp(2.5rem, 4vw, 3.4rem);
    }
    .vx-workspace .dashboard-metric > .icon .material-icons {
        position: static;
        inset: auto;
        transform: none;
        line-height: 1;
    }
    .vx-workspace .dashboard-metric-copy {
        flex: 1 1 auto;
        min-inline-size: 0;
        overflow-wrap: anywhere;
        text-align: start;
    }
    .vx-workspace .main-content .veritrox-workspace .card { margin-block: 1rem; }
    .vx-workspace .main-content .veritrox-workspace { --workspace-accent: var(--vx-primary); --workspace-line: var(--vx-line); }
    .vx-workspace .main-content :is(.form-label, label:not(.btn)) { color: #254356; font-weight: 650; }
    .vx-workspace .main-content :is(.form-control, .form-select),
    .vx-workspace .veritrox-workspace :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea) {
        border-color: #b8ccd7;
        background-color: #fff;
        color: var(--vx-ink);
        border-radius: .65rem;
    }
    .vx-workspace :is(.form-control, .form-select, input, select, textarea):focus { border-color: var(--vx-focus); }
    .vx-workspace :is(input[type=checkbox], input[type=radio]) { accent-color: var(--vx-primary); }

    .vx-workspace .main-content :is(.btn, .button) {
        border-radius: .62rem;
        box-shadow: none;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 700;
    }
    .vx-workspace .main-content :is(.btn-primary, .bg-gradient-primary) {
        background: var(--vx-primary) !important;
        border-color: var(--vx-primary);
        color: #fff;
    }
    .vx-workspace .main-content .btn-primary:hover,
    .vx-workspace .main-content .bg-gradient-primary:hover { background: var(--vx-primary-hover) !important; border-color: var(--vx-primary-hover); }
    .vx-workspace .main-content :is(.btn-outline-primary, .button.secondary) { color: var(--vx-primary); border-color: #88b6ae; }
    .vx-workspace .main-content :is(.btn-outline-primary, .button.secondary):hover { color: var(--vx-primary-hover); background: var(--vx-soft); }
    .vx-workspace .main-content :is(.btn-danger, .bg-gradient-danger) { background: #b23646; border-color: #b23646; color: #fff; }
    .vx-workspace .main-content :is(.btn-success, .bg-gradient-success) { background: #156749; border-color: #156749; color: #fff; }

    .vx-workspace .main-content :is(.table, .veritrox-grid) { --bs-table-color: var(--vx-ink); --bs-table-border-color: var(--vx-line); }
    .vx-workspace .main-content :is(.table, .veritrox-grid) > thead > tr > th {
        background: #e5edf3 !important;
        color: #254457 !important;
        text-transform: none;
        letter-spacing: normal;
    }
    .vx-workspace .main-content .veritrox-grid > tbody > tr > td { color: #254457 !important; }
    .vx-workspace .main-content .veritrox-grid > tbody > tr:is(:hover, :focus-within) { background: #eaf7f2 !important; }
    .vx-workspace .main-content .veritrox-grid-toolbar { margin-top: .8rem; background: #fbfdfe; }
    .vx-workspace .main-content :is(.lab-table-tools, .veritrox-pager) { border-color: var(--vx-line); box-shadow: var(--vx-shadow); }
    .vx-workspace .main-content .badge { border-radius: .55rem; font-weight: 700; letter-spacing: normal; }

    .vx-site {
        --ink: var(--vx-ink);
        --muted: var(--vx-muted);
        --teal: var(--vx-primary);
        --line: var(--vx-line);
        --pale: #e5f3ef;
        color: var(--vx-ink);
        background: #f2f7f8;
        min-height: 100vh;
    }
    .vx-site .topbar {
        min-height: 76px;
        height: auto;
        padding-block: .65rem;
        background: #fbfdfd;
        border-color: var(--vx-line);
    }
    .vx-site .topbar .veritrox-logo { max-height: 55px; max-width: 100%; object-fit: contain; width: auto; }
    .vx-site .topbar nav { gap: clamp(.35rem, 1.75vw, 1.5rem); flex-wrap: wrap; }
    .vx-site .topbar nav > a:hover { color: var(--vx-primary); text-decoration: underline; text-underline-offset: .24rem; }
    .vx-site .button { border-radius: .7rem; font-weight: 750; }
    .vx-site .button:hover { background: var(--vx-primary-hover); }
    .vx-site .button.secondary:hover { background: var(--vx-soft); }
    .vx-site h1 { font-weight: 850; line-height: 1.24; }
    .vx-site h2, .vx-site h3 { font-weight: 760; }
    .vx-site .card, .vx-site dialog { border-color: var(--vx-line); border-radius: 1.15rem; box-shadow: var(--vx-shadow); }
    .vx-site :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-color: #b9cdd3; border-radius: .7rem; }
    .vx-site :is(main, .actions, .topbar nav) { min-inline-size: 0; }

    .vx-landing main { padding-block: clamp(1.25rem, 4vw, 3.3rem) 4rem; }
    .vx-landing .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: clamp(1.6rem, 4vw, 4.2rem);
        padding: clamp(1.65rem, 5.2vw, 4.7rem);
        color: #f3f9fb;
        background: radial-gradient(ellipse at 82% 12%, #1f655d 0, transparent 55%),
                    radial-gradient(ellipse at 18% 90%, #1c475c 0, transparent 58%), #0d263c;
        border: 1px solid #204659;
        border-radius: 1.65rem;
        box-shadow: 0 30px 55px -39px #102b40c9;
    }
    .vx-landing .hero h1 { margin-block: .45rem 1.05rem; font-size: clamp(2.3rem, 5vw, 4.45rem); letter-spacing: -.035em; }
    .vx-landing:lang(ar) .hero h1 { letter-spacing: normal; line-height: 1.3; }
    .vx-landing .hero .eyebrow { color: #ffd993; letter-spacing: normal; margin-block: .2rem; }
    .vx-landing .hero :is(.hero-description, .muted) { color: #cfe0e9; }
    .vx-landing .hero .hero-description { max-inline-size: 40rem; }
    .vx-landing .hero .actions > .button:first-child {
        background: var(--vx-warm);
        color: #192c38;
        border-color: var(--vx-warm);
    }
    .vx-landing .hero .actions > .button:first-child:hover { background: #ffdc91; }
    .vx-landing .hero .button.secondary { background: transparent; color: #f5fbfa; border-color: #92bbb8; }
    .vx-landing .hero .button.secondary:hover { background: #254c5c; }
    .vx-landing .hero-panel {
        transform: none;
        min-inline-size: 0;
        background: #f9fcfd;
        color: var(--vx-ink);
        border: 1px solid #b4cdd3;
        border-radius: 1.15rem;
        box-shadow: 0 24px 67px -18px #0008;
        padding: clamp(1rem, 2.25vw, 1.8rem);
    }
    .vx-landing .hero > :first-child,
    .vx-landing .hero-panel :is(.sample-stats > div, .panel-footer > div) { min-inline-size: 0; }
    .vx-landing .hero-panel :is(.panel-heading, .workflow) { flex-wrap: wrap; }
    .vx-landing .hero-panel :is(.sample-stats > div, .panel-footer > div, .workflow span) { overflow-wrap: anywhere; }
    .vx-landing .hero-panel :is(.muted, .panel-footer) { color: var(--vx-muted); }
    html[dir=ltr] .vx-landing .workflow i { transform: scaleX(-1); }
    .vx-landing .sample-stats > div { background: #e6f2ef; }
    .vx-landing .sample-stats strong { font-family: inherit; font-weight: 790; }
    .vx-landing .feature-grid { gap: clamp(.85rem, 2vw, 1.3rem); }
    .vx-landing .feature-grid article {
        box-shadow: var(--vx-shadow);
        border-color: var(--vx-line);
        border-radius: 1.15rem;
        border-block-start: 3px solid #3f9688;
    }
    .vx-landing .feature-grid article:nth-child(3n+2) { border-block-start-color: #5591b1; }
    .vx-landing .feature-grid article:nth-child(3n+3) { border-block-start-color: #c59449; }
    .vx-landing .privacy-panel { background: #ddecf2; border: 1px solid #c8dbe5; color: #173749; border-radius: 1.15rem; }
    .vx-workspace #system-governance :is(fieldset, details, dd, p) { min-inline-size: 0; overflow-wrap: anywhere; }
    .vx-workspace #system-governance .card > summary { font-size: 1.05rem; font-weight: 750; }
    .vx-workspace #system-governance fieldset > legend { color: var(--vx-primary); font-weight: 750; }
    .vx-scientific-forms main > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
    .vx-scientific-forms main > section { padding: clamp(1rem, 3vw, 1.65rem); box-shadow: var(--vx-shadow); }
    .vx-scientific-forms main > h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); }
    .vx-scientific-forms main > nav { margin-top: 1rem; }
    .vx-scientific-forms nav a { text-decoration: none; line-height: 1.4; }
    .vx-scientific-forms nav a:hover { background: #d2ebe2; text-decoration: underline; }

    @media (max-width: 900px) {
        .vx-landing .hero { grid-template-columns: 1fr; }
        .vx-landing .hero-panel { inline-size: 100%; }
    }
    @media (max-width: 640px) {
        .vx-site main { padding-inline: .85rem; }
        .vx-site .topbar { padding-inline: .85rem; justify-content: space-between; gap: .45rem; }
        .vx-site .topbar .veritrox-logo { max-inline-size: 125px; }
        .vx-site .topbar nav { justify-content: flex-end; gap: .25rem .55rem; }
        .vx-site .topbar nav .button { min-height: 36px; padding: .35rem .55rem; }
        .vx-landing .hero { border-radius: 1.1rem; padding: 1.25rem; }
        .vx-landing .hero .actions .button { white-space: normal; }
        .vx-workspace .main-content .veritrox-workspace .section-heading { gap: .6rem; }
        .vx-workspace .main-content form label:has(> .form-control) { display: block; max-inline-size: 100%; }
        .vx-workspace .main-content form :is(.form-control, .form-select, .btn, .button) { max-inline-size: 100%; }
        .vx-workspace .main-content form :is(.btn, .button) { white-space: normal; }
    }
}
