:root {
    color-scheme: light;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(143, 212, 235, 0.2), transparent 28%),
        linear-gradient(180deg, #f2f8fc 0%, #eef5f8 38%, #f8fbfd 100%);
    color: #102b3c;
}

a,
.btn-link {
    color: #0d6387;
}

.btn-primary {
    color: #f4fbff;
    background: linear-gradient(135deg, #0d6387, #12808d);
    border-color: #0d6387;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #f4fbff;
    background: linear-gradient(135deg, #0c5674, #106f7b);
    border-color: #0c5674;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 99, 135, 0.18);
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

h1:focus {
    outline: none;
}

.validation-message {
    color: #b42318;
}

.form-check-input {
    border-color: #7ea1b7;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff7d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Shared page styles for Home, ENet Negotiation, and Label Generator */
.hero {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr);
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(121, 214, 249, 0.18), transparent 32%),
        linear-gradient(135deg, #081f33, #0d3b4f 55%, #145a60);
    color: #f4fbff;
    box-shadow: 0 24px 60px rgba(8, 31, 51, 0.18);
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8fd4eb;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.hero-copy {
    max-width: 46rem;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(244, 251, 255, 0.84);
}

.hero-summary {
    display: grid;
    gap: 0.5rem;
    align-content: end;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.hero-summary span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(244, 251, 255, 0.72);
}

.hero-summary strong {
    font-size: 1rem;
    line-height: 1.5;
}

.panel {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #d8e2ea;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(8, 31, 51, 0.08);
}

.section-head {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1rem;
}

.section-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.section-head p,
.action-bar p {
    margin: 0.25rem 0 0;
    color: #546a7b;
}

.stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stats span,
.hint {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #ecf5fa;
    color: #164762;
    font-size: 0.9rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    min-width: 52rem;
    --bs-table-bg: #102b3c;
    --bs-table-striped-bg: #17374c;
    --bs-table-striped-color: #f4fbff;
    --bs-table-color: #f4fbff;
    --bs-table-border-color: rgba(143, 212, 235, 0.18);
    border-radius: 1rem;
    overflow: hidden;
}

.data-table td,
.data-table th {
    vertical-align: middle;
}

.data-table .form-control {
    min-width: 7rem;
    border-color: rgba(143, 212, 235, 0.35);
    background: rgba(244, 251, 255, 0.96);
}

.data-table .form-control:disabled {
    background: #d5e0e7;
    border-color: rgba(143, 212, 235, 0.2);
    color: #4f6473;
    opacity: 1;
}

.data-table .version-input {
    min-width: 4.5rem;
    width: 4.5rem;
    text-align: right;
}

.radio-group {
    display: grid;
    gap: 0.35rem;
    min-width: 12rem;
}

.radio-group-readonly {
    pointer-events: none;
}

.radio-option {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.25;
}

.radio-option input {
    margin: 0;
}

.radio-option input {
    accent-color: #8fd4eb;
}

.data-table small {
    color: #b8d5e4;
}

.group-warning {
    margin-top: 0.35rem;
    color: #ffd28f;
    font-size: 0.85rem;
    line-height: 1.35;
}

.data-table .module-disabled {
    opacity: 0.48;
}

.data-table .module-disabled .form-control:disabled,
.data-table .module-disabled input:disabled + span {
    cursor: not-allowed;
}

.check-col {
    width: 5rem;
}

.action-bar {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .panel,
    .hero {
        padding: 1.25rem;
    }

    .section-head,
    .action-bar {
        align-items: start;
        flex-direction: column;
    }

    .data-table {
        min-width: 44rem;
    }
}
