/* ---------------------------------------------------
   GLOBAL
--------------------------------------------------- */

* {

    box-sizing:
        border-box;

}


body {

    margin:
        0;

    padding:
        40px 20px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        #f5f7fa;

    color:
        #202124;

}


.container {

    max-width:
        900px;

    margin:
        auto;

}



/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */

.header {

    text-align:
        center;

    margin-bottom:
        30px;

}


.ai-badge {

    display:
        inline-block;

    padding:
        7px 13px;

    margin-bottom:
        12px;

    background:
        #eceff3;

    border-radius:
        20px;

    font-size:
        11px;

    font-weight:
        bold;

    letter-spacing:
        1.5px;

    color:
        #555;

}


h1 {

    margin:
        0;

    font-size:
        34px;

}


.subtitle {

    margin-top:
        10px;

    color:
        #667085;

    line-height:
        1.5;

}



/* ---------------------------------------------------
   MAIN CARD
--------------------------------------------------- */

.card {

    padding:
        30px;

    background:
        white;

    border-radius:
        14px;

    box-shadow:
        0 4px 20px
        rgba(0, 0, 0, 0.08);

}


.section-label {

    display:
        block;

    margin-bottom:
        12px;

    font-weight:
        bold;

}



/* ---------------------------------------------------
   UPLOAD
--------------------------------------------------- */

.upload-area {

    text-align:
        center;

    padding:
        25px;

    border:
        2px dashed #ccd2da;

    border-radius:
        10px;

    background:
        #fafbfc;

}


#imageInput {

    display:
        none;

}


.upload-button {

    display:
        inline-block;

    padding:
        12px 24px;

    background:
        #202124;

    color:
        white;

    border-radius:
        7px;

    cursor:
        pointer;

    font-weight:
        bold;

}


.upload-button:hover {

    background:
        #383a3d;

}


.file-name {

    margin-top:
        12px;

    font-size:
        13px;

    color:
        #667085;

}



/* ---------------------------------------------------
   IMAGE PREVIEW
--------------------------------------------------- */

.preview-container {

    margin-top:
        22px;

    text-align:
        center;

}


#imagePreview {

    max-width:
        100%;

    max-height:
        450px;

    border-radius:
        10px;

    border:
        1px solid #e0e3e7;

    object-fit:
        contain;

}



/* ---------------------------------------------------
   ANALYZE BUTTON
--------------------------------------------------- */

#analyzeButton {

    width:
        100%;

    margin-top:
        22px;

    padding:
        15px;

    border:
        none;

    border-radius:
        8px;

    background:
        #202124;

    color:
        white;

    font-size:
        17px;

    font-weight:
        bold;

    cursor:
        pointer;

}


#analyzeButton:hover {

    background:
        #383a3d;

}


#analyzeButton:disabled {

    opacity:
        0.5;

    cursor:
        not-allowed;

}



/* ---------------------------------------------------
   STATUS
--------------------------------------------------- */

#status {

    margin-top:
        18px;

    text-align:
        center;

    color:
        #667085;

    font-size:
        14px;

}



/* ---------------------------------------------------
   RESULTS
--------------------------------------------------- */

.results {

    margin-top:
        30px;

    padding-top:
        25px;

    border-top:
        1px solid #eceff3;

}


.result-title {

    text-align:
        center;

    font-size:
        20px;

    font-weight:
        bold;

    margin-bottom:
        20px;

}



/* ---------------------------------------------------
   TOP RESULT
--------------------------------------------------- */

.top-result {

    text-align:
        center;

    padding:
        25px;

    margin-bottom:
        28px;

    background:
        #f5f7fa;

    border:
        1px solid #e7e9ed;

    border-radius:
        12px;

}


.top-label {

    font-size:
        11px;

    font-weight:
        bold;

    letter-spacing:
        2px;

    color:
        #667085;

}


.top-prediction {

    margin:
        10px 0;

    font-size:
        28px;

    font-weight:
        bold;

}


.top-score {

    color:
        #667085;

}



/* ---------------------------------------------------
   PREDICTIONS
--------------------------------------------------- */

.all-results-title {

    margin-bottom:
        20px;

    font-weight:
        bold;

}


.prediction-row {

    margin-bottom:
        18px;

}


.prediction-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        7px;

}


.prediction-name {

    font-weight:
        bold;

}


.rank {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        25px;

    height:
        25px;

    margin-right:
        8px;

    background:
        #eceff3;

    border-radius:
        50%;

    font-size:
        12px;

}


.percentage {

    font-weight:
        bold;

    color:
        #555;

}



/* ---------------------------------------------------
   BARS
--------------------------------------------------- */

.bar-background {

    height:
        12px;

    background:
        #e8eaed;

    border-radius:
        10px;

    overflow:
        hidden;

}


.bar {

    height:
        100%;

    background:
        #333;

    border-radius:
        10px;

    transition:
        width 0.5s ease;

}



/* ---------------------------------------------------
   WARNING
--------------------------------------------------- */

.score-warning {

    margin-top:
        25px;

    padding:
        15px;

    background:
        #f7f7f7;

    border-left:
        4px solid #777;

    border-radius:
        5px;

    font-size:
        13px;

    line-height:
        1.6;

    color:
        #555;

}



/* ---------------------------------------------------
   INFO CARDS
--------------------------------------------------- */

.info {

    margin-top:
        25px;

    padding:
        25px;

    background:
        white;

    border-radius:
        12px;

    box-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.04);

    line-height:
        1.65;

    color:
        #555;

}


.info-title {

    margin-bottom:
        12px;

    font-size:
        19px;

    font-weight:
        bold;

    color:
        #202124;

}



/* ---------------------------------------------------
   FLOW
--------------------------------------------------- */

.flow {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin:
        25px 0;

}


.flow-box {

    padding:
        11px 15px;

    background:
        #f3f4f6;

    border:
        1px solid #e1e4e8;

    border-radius:
        7px;

    font-size:
        13px;

    font-weight:
        bold;

    color:
        #333;

}


.final-box {

    background:
        #202124;

    color:
        white;

    border-color:
        #202124;

}


.arrow {

    font-weight:
        bold;

    color:
        #777;

}



/* ---------------------------------------------------
   MODEL INFORMATION
--------------------------------------------------- */

.model-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        15px;

    margin-top:
        18px;

}


.model-grid > div {

    padding:
        15px;

    background:
        #f7f8fa;

    border-radius:
        8px;

}


.model-label {

    display:
        block;

    margin-bottom:
        5px;

    font-size:
        11px;

    text-transform:
        uppercase;

    letter-spacing:
        1px;

    color:
        #777;

}



/* ---------------------------------------------------
   IMPORTANT
--------------------------------------------------- */

.warning {

    border-left:
        4px solid #777;

}



/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

.footer {

    padding:
        30px 10px;

    text-align:
        center;

    color:
        #999;

    font-size:
        12px;

}



/* ---------------------------------------------------
   UTILITY
--------------------------------------------------- */

.hidden {

    display:
        none;

}



/* ---------------------------------------------------
   MOBILE
--------------------------------------------------- */

@media (max-width: 700px) {


    body {

        padding:
            20px 12px;

    }


    .card {

        padding:
            20px;

    }


    h1 {

        font-size:
            27px;

    }


    .model-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .flow {

        flex-direction:
            column;

    }

}