@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    background: #eef3f8;
    color: #243447;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14.5px;
    max-width: 100%;
    overflow-x: hidden;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #15588e;
}

.btn {
    border-radius: 5px;
    font-weight: 700;
}

.btn-primary {
    background-color: #15588e;
    border-color: #15588e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0f4775;
    border-color: #0f4775;
}

.content {
    padding-top: 1.5rem;
}

.page-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.upload-page-heading {
    margin-left: auto;
    margin-right: auto;
    max-width: 64rem;
    text-align: center;
}

.upload-page-heading .page-description {
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    color: #488f4d;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0 0 .2rem;
    text-transform: uppercase;
}

.page-heading h2 {
    color: #0b2e63;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.page-description {
    color: #526272;
    font-size: .98rem;
    line-height: 1.55;
    margin: .45rem 0 0;
    max-width: 54rem;
}

.upload-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(24rem, 1.4fr) minmax(18rem, .8fr);
    margin: 0 auto;
    max-width: 72rem;
}

.upload-panel,
.requirements-panel {
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 40, 64, .08);
    padding: 1.25rem;
}

.upload-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-height: 21rem;
    padding: 2rem;
    text-align: center;
}

.upload-card-icon {
    align-items: center;
    background: linear-gradient(135deg, #0f8ac8, #15588e);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(21, 88, 142, .22);
    color: #ffffff;
    display: inline-flex;
    font-size: 4.25rem;
    height: 7.25rem;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 7.25rem;
}

.upload-card-copy h3 {
    color: #0b2e63;
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0;
}

.upload-card-copy p {
    color: #526272;
    margin: .35rem 0 1.35rem;
}

.upload-panel-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.upload-panel h3,
.requirements-panel h3 {
    color: #0b2e63;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0;
}

.upload-panel-header p {
    color: #64748b;
    margin: .25rem 0 0;
}

.status-badge {
    background: #e9f6ec;
    border: 1px solid #b7dec0;
    border-radius: 999px;
    color: #276832;
    font-size: .78rem;
    font-weight: 800;
    padding: .3rem .65rem;
    white-space: nowrap;
}

.form-label {
    color: #334155;
    font-weight: 800;
}

.form-control {
    border-radius: 5px;
}

.form-control:focus {
    border-color: #15588e;
    box-shadow: 0 0 0 .2rem rgba(21, 88, 142, .16);
}

.file-picker {
    align-items: stretch;
    border: 1px solid #c7d7e7;
    border-radius: 6px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0 auto;
    max-width: 38rem;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.file-picker-button {
    align-items: center;
    border-radius: 0;
    display: inline-flex;
    gap: .45rem;
    justify-content: center;
    margin: 0;
    min-width: 11rem;
}

.selected-file {
    background: #f8fbfe;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: .7rem .9rem;
}

.selected-file-label {
    color: #0b2e63;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-meta {
    color: #64748b;
    font-size: .82rem;
}

.upload-actions {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1.25rem 0;
}

.upload-status-bar {
    align-items: center;
    background: #eaf7fb;
    border: 1px solid #b9e7f3;
    border-radius: 6px;
    color: #07516c;
    display: flex;
    font-weight: 700;
    gap: .55rem;
    justify-content: center;
    line-height: 1.35;
    max-width: 38rem;
    min-height: 2.8rem;
    padding: .65rem .8rem;
    width: 100%;
}

.status-dot {
    background: #1f9d55;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(31, 157, 85, .14);
    flex: 0 0 auto;
    height: .55rem;
    width: .55rem;
}

.upload-status-bar.is-working .status-dot {
    animation: status-pulse 1.2s ease-in-out infinite;
    background: #0b6aa2;
}

.upload-status-bar.is-success {
    background: #ebf8ee;
    border-color: #b7dec0;
    color: #276832;
}

.upload-status-bar.is-error {
    background: #fff1f1;
    border-color: #efc0c0;
    color: #8b1d1d;
}

.upload-status-bar.is-error .status-dot {
    background: #b32121;
    box-shadow: 0 0 0 4px rgba(179, 33, 33, .12);
}

.upload-error-panel {
    background: #fff7f7;
    border: 1px solid #efc0c0;
    border-left: 4px solid #b32121;
    border-radius: 6px;
    color: #7c1c1c;
    margin-bottom: .85rem;
    max-width: 38rem;
    padding: .8rem 1rem;
    width: 100%;
}

.upload-error-panel ul {
    margin: .45rem 0 0;
    padding-left: 1.2rem;
}

.processing-result {
    background: #f8fbfe;
    border: 1px solid #d7e4ef;
    border-radius: 6px;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(6rem, 1fr));
    margin-top: .85rem;
    max-width: 38rem;
    padding: .85rem 1rem;
    width: 100%;
}

.processing-result > div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.processing-result-label {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.processing-result code {
    color: #0b2e63;
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.upload-warning-panel {
    background: #fff9e9;
    border: 1px solid #eadca7;
    border-left: 4px solid #b7791f;
    border-radius: 6px;
    color: #704b12;
    margin-top: .85rem;
    max-width: 38rem;
    padding: .8rem 1rem;
    width: 100%;
}

.upload-warning-panel ul {
    margin: .45rem 0 0;
    padding-left: 1.2rem;
}

.upload-status-bar.is-warning {
    background: #fff9e9;
    border-color: #eadca7;
    color: #704b12;
}

.upload-status-bar.is-warning .status-dot {
    background: #b7791f;
    box-shadow: 0 0 0 4px rgba(183, 121, 31, .12);
}

@keyframes status-pulse {
    50% {
        opacity: .45;
        transform: scale(.82);
    }
}

.requirements-panel {
    padding: 1.35rem;
}

.requirements-panel-header {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.requirements-panel ul {
    color: #526272;
    line-height: 1.55;
    margin: .75rem 0 0;
    padding-left: 1.2rem;
}

.requirements-panel li + li {
    margin-top: .45rem;
}

.validation-steps {
    display: grid;
    gap: .85rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.validation-steps li {
    align-items: flex-start;
    background: #f8fbfe;
    border: 1px solid #e1eaf3;
    border-radius: 6px;
    color: #43566b;
    display: grid;
    gap: .75rem;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.45;
    padding: .85rem;
}

.step-number {
    background: #e9f6ec;
    border: 1px solid #b7dec0;
    border-radius: 4px;
    color: #276832;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    padding: .35rem .45rem;
    white-space: nowrap;
}

.auth-message-panel {
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 40, 64, .08);
    margin: 0 auto;
    max-width: 48rem;
    padding: 1.5rem;
}

.auth-message-panel h2 {
    color: #0b2e63;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 .4rem;
}

.auth-message-panel p {
    color: #526272;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.auth-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.auth-error-code {
    background: #fff8e6;
    border-left: 4px solid #c77800;
    color: #5f4300 !important;
    font-weight: 700;
    padding: .65rem .8rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #b32121;
}

.validation-message {
    color: #b32121;
}

@media (max-width: 700px) {
    .processing-result {
        grid-template-columns: 1fr;
    }
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

.blazor-error-boundary {
    background: #b32121;
    color: #ffffff;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.dcf-ext-template-footer {
    background-color: #003467 !important;
    color: #ffffff !important;
}

.dcf-ext-template-prefooter-row {
    background-color: #003467 !important;
}

.dcf-ext-template-edgesection {
    background-color: #115ba4 !important;
    color: #ffffff !important;
}

.dcf-ext-template-footer h5,
.dcf-ext-template-footer a.dcf-ext-template-link {
    color: #ffffff !important;
}

.dcf-ext-template-footer a.dcf-ext-template-link:hover {
    color: #e9f3ff !important;
}

.emergency-card {
    background-color: #ffffff !important;
    color: #243447 !important;
}

.emergency-card-header {
    background-color: #951c1a !important;
    color: #ffffff !important;
}

.emergency-card .list-group-item {
    background-color: #ffffff !important;
    color: #243447 !important;
}

@media (max-width: 900px) {
    .upload-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .upload-panel-header {
        flex-direction: column;
    }

    .upload-card {
        padding: 1.35rem;
    }

    .upload-card-icon {
        font-size: 3.25rem;
        height: 5.75rem;
        width: 5.75rem;
    }

    .file-picker {
        grid-template-columns: 1fr;
    }

    .file-picker-button {
        min-height: 2.8rem;
        width: 100%;
    }

    .selected-file {
        text-align: center;
    }
}
