* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f7fb;

    color: #172033;

    line-height: 1.5;
}


.container {
    width: min(
        1100px,
        calc(100% - 30px)
    );

    margin: auto;
}


/* HEADER */

.header {
    background: #111827;

    color: white;

    padding: 18px 0;
}


.header-inner {
    display: flex;

    align-items: center;

    gap: 15px;
}


.logo {
    font-size: 22px;

    font-weight: 800;
}


.subtitle {
    color: #9ca3af;

    font-size: 14px;
}


/* HERO */

.hero {
    text-align: center;

    padding: 70px 0 45px;
}


.hero h1 {
    font-size: 42px;

    margin-bottom: 12px;
}


.hero p {
    color: #667085;

    margin-bottom: 30px;
}


/* SEARCH */

.search-box {
    max-width: 700px;

    margin: auto;

    display: flex;

    background: white;

    border: 1px solid #d9dee8;

    border-radius: 12px;

    padding: 6px;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, .06);
}


.search-box input {
    flex: 1;

    border: none;

    outline: none;

    padding: 15px;

    font-size: 16px;

    min-width: 0;
}


.search-box button {
    border: none;

    background: #2563eb;

    color: white;

    padding: 0 25px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;
}


.search-box button:hover {
    background: #1d4ed8;
}


.search-box button:disabled {
    opacity: .6;

    cursor: not-allowed;
}


.form-error {
    color: #dc2626;

    margin-top: 12px;

    min-height: 20px;
}


/* LOADING */

.loading {
    text-align: center;

    padding: 40px;
}


.loading p {
    font-weight: 600;

    margin-bottom: 5px;
}


.loading small {
    color: #667085;
}


.spinner {
    width: 35px;

    height: 35px;

    border: 4px solid #dbe3f0;

    border-top-color: #2563eb;

    border-radius: 50%;

    animation: spin .8s linear infinite;

    margin:
        auto
        auto
        15px;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


.hidden {
    display: none !important;
}


/* SUMMARY */

.summary-card {
    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    margin-bottom: 25px;
}


.small-label {
    display: block;

    font-size: 13px;

    color: #667085;

    margin-bottom: 5px;
}


.summary-card h2 {
    font-size: 25px;

    word-break: break-all;
}


.summary-stats {
    display: flex;

    gap: 30px;
}


.summary-stats div {
    text-align: center;
}


.summary-stats strong {
    display: block;

    font-size: 26px;
}


.summary-stats span {
    font-size: 13px;

    color: #667085;
}


.summary-stats div:nth-child(1) strong {
    color: #16a34a;
}


.summary-stats div:nth-child(2) strong {
    color: #d97706;
}


.summary-stats div:nth-child(3) strong {
    color: #dc2626;
}


/* PROBLEMS */

.problems-section {
    margin-bottom: 30px;
}


.problems-section h2,
.section h2 {
    font-size: 20px;

    margin-bottom: 15px;
}


.problem {
    background: white;

    border-radius: 10px;

    padding: 16px;

    margin-bottom: 10px;

    border-left: 5px solid;
}


.problem.error {
    border-color: #dc2626;
}


.problem.warning {
    border-color: #d97706;
}


.problem-title {
    font-weight: 700;

    margin-bottom: 4px;
}


.problem-description {
    color: #667085;

    font-size: 14px;
}


/* SECTIONS */

.section {
    margin-bottom: 30px;
}


.section-description {
    color: #667085;

    font-size: 14px;

    margin-top: -5px;

    margin-bottom: 15px;
}


/* GRID */

.grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );

    gap: 12px;
}


/* RESULT CARD */

.result-card {
    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    padding: 18px;
}


.result-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}


.result-title {
    font-weight: 700;
}


.status {
    font-size: 12px;

    font-weight: 700;

    padding: 4px 8px;

    border-radius: 20px;

    white-space: nowrap;
}


.status.success {
    color: #15803d;

    background: #dcfce7;
}


.status.warning {
    color: #a16207;

    background: #fef9c3;
}


.status.error {
    color: #b91c1c;

    background: #fee2e2;
}


.status.info {
    color: #475569;

    background: #e2e8f0;
}


.result-value {
    color: #667085;

    font-size: 14px;

    word-break: break-word;
}


/* FOOTER */

footer {
    margin-top: 60px;

    padding: 25px 0;

    text-align: center;

    color: #98a2b3;

    font-size: 13px;
}


/* MOBILE */

@media (max-width: 700px) {

    .hero {
        padding-top: 40px;
    }


    .hero h1 {
        font-size: 30px;
    }


    .search-box {
        flex-direction: column;

        background: transparent;

        border: none;

        box-shadow: none;

        gap: 10px;
    }


    .search-box input {
        background: white;

        border:
            1px solid
            #d9dee8;

        border-radius: 10px;

        width: 100%;
    }


    .search-box button {
        height: 50px;
    }


    .summary-card {
        flex-direction: column;

        align-items: flex-start;
    }


    .summary-stats {
        width: 100%;

        justify-content: space-between;
    }

}