/*
   VisionVine 
   Aug 2026 
   Shadi Kabajah
   skabajah@icloud.com
   skabajah.github.io 
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f4f7fb;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 1320px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 20, 50, 0.08);
    padding: 32px 40px 0;
    margin: 0 auto;
    transition: box-shadow 0.2s ease;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9edf4;
}
header img {
    height: 40px;
    vertical-align: middle;
}

.header-left h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0b2b4a;
    letter-spacing: -0.4px;
    margin: 0;
}

.header-left .tagline {
    font-size: 15px;
    color: #5e6f8d;
    margin-top: 4px;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge {
    background: #eef3fc;
    color: #1a5a9c;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d6e2f2;
}

/* ===== SPLIT LAYOUT ===== */
.split {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.split > section {
    flex: 1;
    min-height: 460px;
    background: #fafcff;
    border-radius: 16px;
    border: 1px solid #e9edf4;
    padding: 24px 28px;
    transition: border-color 0.2s;
}

/* ===== LEFT: UPLOAD ===== */
.upload-panel h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0b2b4a;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 44px 20px;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.25s, background 0.25s;
    cursor: pointer;
}

.drop-zone.dragover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.drop-zone p {
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
}

.drop-zone .hint {
    font-size: 14px;
    color: #6b7f9c;
    margin-top: 6px;
}

/* ===== + BUTTON ===== */
.btn-plus {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eef3fc;
    color: #0b2b4a;
    border: 2px dashed #0b2b4a;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    margin: 0 auto 12px auto;
    display: block;
    line-height: 1;
}

.btn-plus:hover {
    background: #dce7f7;
    border-color: #1a405f;
    transform: scale(1.04);
}

.drop-text {
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    margin: 8px 0 4px 0;
}

.thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    min-height: 60px;
}

.thumbnails img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* ===== PROCESS BUTTON ===== */
.btn-primary {
    width: 100%;
    background: #9aabbd;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    cursor: not-allowed;
    transition: background 0.2s;
}

.btn-primary.enabled {
    background: #0b2b4a;
    cursor: pointer;
}

.btn-primary.enabled:hover {
    background: #1a405f;
}

.status-message {
    margin-top: 14px;
    font-size: 14px;
    color: #5e6f8d;
    text-align: center;
}

/* ===== RIGHT: RESULTS ===== */
.results-panel h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0b2b4a;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.placeholder {
    color: #8a9bb0;
    font-size: 15px;
    text-align: center;
    padding: 44px 0;
}

/* === RESULT ITEMS — FIXED ALIGNMENT === */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    gap: 16px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: #1e293b;
    font-size: 15px;
    flex: 0 0 150px; /* Fixed width for labels */
}

.result-value {
    font-size: 14px;
    color: #2d4059;
    flex: 1; /* Takes remaining space */
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* Allows wrapping */
}

.result-status {
    font-size: 24px;
    line-height: 1;
    flex: 0 0 40px;
    text-align: right;
}

.result-status.pass {
    color: #0f7b3a;
}

.result-status.fail {
    color: #b22234;
}

/* ===== DECISION BUTTON ===== */
.decision-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 700;
    margin-top: 24px;
    transition: opacity 0.2s, transform 0.1s;
    cursor: pointer;
}

.decision-btn.pass {
    background: #0f7b3a;
    color: white;
}

.decision-btn.fail {
    background: #b22234;
    color: white;
}
.btn-plus .material-icons {
    font-size: 48px;
    line-height: 1;
}
/* ===== THUMBNAIL REMOVE BUTTON ===== */
.thumbnail-wrapper {
    position: relative;
    display: inline-block;
}

.thumbnail-wrapper img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.thumbnail-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #b22234;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.15s, transform 0.1s;
    padding: 0;
}

.thumbnail-remove:hover {
    background: #8a1a2a;
    transform: scale(1.1);
}

.thumbnail-remove .material-icons {
    font-size: 16px;
    line-height: 1;
}
.warning-status.standard {
    font-weight: bold;
    color: #0f7b3a;  /* Green */
}

.warning-status.non-standard {
    font-weight: bold;
    color: #b22234;  /* Red */
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: #7a8aa0;
    border-top: 1px solid #edf2f7;
    padding: 20px 0 ;
    background: #fafcff;
}
footer a {
    text-decoration: none;
    color: #9aabbd;
}
footer a:hover {
    text-decoration: underline;
    color: #0969da;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .split {
        flex-direction: column;
    }
    .container {
        padding: 20px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-left h1 {
        font-size: 26px;
    }
    .result-label {
        flex: 0 0 120px;
    }
}