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

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
}

/* Backgrounds */
.bg-dark {
    background-color: #19212b !important;
}

.bg-Epson {
    background-color: #10218b !important;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.content {
    padding-top: 1.1rem;
}

/* Container max width */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Epson text */
.Epson-text, .Epson-text a, .Epson-text a:hover {
    color: #10218b !important;
}

/* Buttons */
.btn {
    padding: 8px 35px 8px 15px;
    font-size: 1.142857rem;
    line-height: 1.428571rem;
    border-radius: 0;
    text-align: left;
    transition: background-color .3s ease-in-out;
    white-space: normal;
}

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

/* Primary button */
.btn-primary {
    background-color: #10218b;
    color: #fff;
    border: none;
    position: relative;
}

    .btn-primary::after {
        content: "";
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid #fff;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: #9ddfff;
        color: #10218b;
    }

.btn-primary--arrowless::after {
    display: none;
}

/* Disabled primary */
.btn-primary:disabled {
    background-color: #90949c;
    color: #fff;
}

/* Secondary button */
.btn-secondary {
    background-color: #90949c;
    color: #fff;
    border: none;
    position: relative;
}

    .btn-secondary::after {
        content: "";
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid #fff;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active {
        background-color: #353535;
        color: #fff;
    }

.btn-secondary--arrowless::after {
    display: none;
}

.btn-secondary:disabled {
    background-color: #90949c;
    color: #fff;
}

/* Card nav tabs */
.card.card-nav-tabs .card-header {
    padding: 5px 5px 0;
}

.card.card-nav-tabs .nav-tabs {
    border-bottom: none;
}

.card.card-nav-tabs .nav-justified {
    margin-bottom: -1px;
}

/* Error image */
.bg-errorimage {
    background-image: url('images/notfound.webp');
    height: 700px;
}

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

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

/* Blazor error boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Wizard */
.wizard-container {
    max-width: 780px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
}

    .wizard-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 40px;
        right: 40px;
        height: 2px;
        background: #e2e6ed;
        z-index: 0;
    }

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e6ed;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #6b7589;
    transition: all 0.25s;
}

.wizard-step.active .wizard-step-circle {
    background: #0057b8;
    border-color: #0057b8;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0,87,184,0.18);
}

.wizard-step.completed .wizard-step-circle {
    background: #00c7b1;
    border-color: #00c7b1;
    color: #fff;
}

.wizard-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7589;
    margin-top: 8px;
    text-align: center;
}

.wizard-step.active .wizard-step-label {
    color: #0057b8;
}

.wizard-step.completed .wizard-step-label {
    color: #009e8d;
}

.wizard-card {
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 16px;
    overflow: hidden;
}

.wizard-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e6ed;
    background: linear-gradient(135deg, #e8f0fb 0%, #fff 60%);
}

    .wizard-card-header .wizard-step-title {
        font-size: 18px;
        font-weight: 700;
        color: #1a2033;
    }

    .wizard-card-header .wizard-step-desc {
        font-size: 13px;
        color: #6b7589;
    }

.wizard-card-body {
    padding: 24px;
}

.wizard-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e6ed;
    background: #fafbfd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Checkbox */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Floating labels */
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Login page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 5px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem 2rem;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.login-header h2 {
    font-weight: 700;
}

.login-body {
    padding: 2rem;
}

    .login-body .btn-primary {
        background: linear-gradient(135deg, #1a1a2e, #0f3460);
        border-radius: 8px;
        font-weight: 600;
    }

/* ── Login page language picker (floated top-right over the gradient bg) ───── */
.login-lang-picker {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 100;
}
