/* =========================================================
   BADGE EVIDENCE UPLOAD
========================================================= */

.badge-evidence-card {
    margin-top: 25px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
}

.badge-evidence-header {
    margin-bottom: 20px;
}

.badge-evidence-header h2 {
    margin: 0 0 5px;
}

.badge-evidence-header p {
    margin: 0;
}

.badges-header {
    margin: 20px 0;
}


/* =========================================================
   PART
========================================================= */

.badge-parts-upload {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.badge-part-upload {
    padding: 20px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
}

.badge-part-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.badge-part-number {
    min-width: 58px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.badge-part-heading h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.badge-part-heading p {
    margin: 0;
    line-height: 1.5;
    color: #666;
}


/* =========================================================
   UPLOAD BOX
========================================================= */

.evidence-file-input {
    display: none;
}

.evidence-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 20px;
    border: 2px dashed #d6d6d6;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
}

.evidence-upload-box:hover {
    border-color: #161b4e;
    background: #f9f9fc;
}

.evidence-upload-icon {
    font-size: 30px;
    margin-bottom: 7px;
}

.evidence-upload-title {
    font-weight: 600;
    color: #161b4e;
}

.evidence-upload-help {
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}


/* =========================================================
   SELECTED FILES
========================================================= */

.selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 13px;
}

.selected-file-remove {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    padding: 0;
}

.selected-file-remove:hover {
    color: #d9534f;
}


/* =========================================================
   EVIDENCE
========================================================= */

.evidence-list {
    margin-top: 18px;
}

.no-evidence {
    color: #888;
    font-size: 13px;
    margin: 10px 0 0;
}

.evidence-item {
    margin-top: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.evidence-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.evidence-image {
    display: block;
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.evidence-video {
    display: block;
    max-width: 100%;
    width: 500px;
    border-radius: 8px;
}


/* =========================================================
   UPLOAD ALL FOOTER
========================================================= */

.upload-all-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f5f5f8;
}

.upload-all-footer strong {
    display: block;
    color: #161b4e;
}

.upload-all-footer p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #777;
}

.upload-all-button {
    white-space: nowrap;
}

.upload-all-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.evidence-notes {
    width: 100%;
    min-height: 90px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
    background: #ffffff;
}

.evidence-notes:focus {
    outline: none;
    border-color: #161b4e;
}

.badge-evidence-label {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #777;
}


/* =========================================================
   BADGE SELECTION CARDS
========================================================= */

.badge-selection-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 230px;
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e1e4ec;
    border-radius: 16px;

    box-sizing: border-box;


    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}


/* =========================================================
   HOVER
========================================================= */

.badge-selection-card:hover {
    transform: translateY(-2px);


    border-color: #cfd4e2;
}


/* =========================================================
   CONTENT
========================================================= */

.badge-selection-content {
    flex: 1;
}


/* =========================================================
   BADGE NAME
========================================================= */

.badge-selection-card h3 {
    margin: 0 0 7px;

    font-size: 1rem;
    line-height: 1.3;

    font-weight: 600;

    color: #161b4e;
}


/* =========================================================
   STATUS
========================================================= */

.badge-selection-card .muted-text {
    margin: 0 0 18px;

    font-size: 0.78rem;

    color: #777d91;

    text-transform: capitalize;
}


/* =========================================================
   PARTS
========================================================= */

.badge-selection-card .badge-parts {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding-top: 12px;

    border-top: 1px solid #eeeeee;

    font-size: 0.82rem;
}


/* =========================================================
   PART STATUS
========================================================= */

.badge-selection-card .tick {
    color: #9a9eaa;
    font-weight: 500;
}

.badge-selection-card .tick.done {
    font-weight: 600;
}


/* =========================================================
   UPLOAD BUTTON
========================================================= */

.badge-upload-button {
    width: 100%;

    margin-top: 20px;

    padding: 9px 14px;

    border: none;
    border-radius: 8px;

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.badge-upload-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* =========================================================
   THEME BUTTON COLOURS
========================================================= */

.badge-upload-button.theme-know-myself {
    background: #1397df;
}

.badge-upload-button.theme-express-myself {
    background: #ec178f;
}

.badge-upload-button.theme-be-well {
    background: #8e58a7;
}

.badge-upload-button.theme-have-adventures {
    background: #67b539;
}

.badge-upload-button.theme-take-action {
    background: #f08a00;
}

.badge-upload-button.theme-skills-future {
    background: #d989b2;
}


/* =========================================================
   SELECTED BADGE
========================================================= */

.badge-selection-card.active {
    border: 2px solid #1c2674;

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .badge-evidence-card {
        padding: 15px;
        border-radius: 12px;
    }

    .badge-part-upload {
        padding: 15px;
    }

    .badge-part-heading {
        gap: 10px;
    }

    .badge-part-number {
        min-width: 50px;
        font-size: 12px;
    }

    .badge-part-heading h3 {
        font-size: 16px;
    }

    .upload-all-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .upload-all-button {
        width: 100%;
    }

    .evidence-item-top {
        align-items: flex-start;
        flex-direction: column;
    }
    
        .badge-parts-upload {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   BADGE SELECTION GRID
========================================================= */

.badge-selection-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   RESPONSIVE BADGE SELECTION GRID
========================================================= */





@media (max-width: 900px) {

    .badge-selection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .badge-selection-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   EVIDENCE NOTES DISPLAY
========================================================= */

.evidence-notes-display {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f6f7fb;
    border-left: 3px solid #1c2674;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
}

.evidence-notes-display strong {
    display: block;
    margin-bottom: 4px;
    color: #161b4e;
    font-size: 12px;
}

.evidence-notes-display p {
    margin: 0;
    line-height: 1.45;
}


/* =========================================================
   EVIDENCE ACTIONS
========================================================= */

.evidence-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}