/* ======================================================
   1. GLOBAL & RESET STYLE
   ====================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333333;
    min-height: 100vh;
}

/* ======================================================
   2. NAVBAR
   ====================================================== */

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 40px;
    box-sizing: border-box;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 40px;
    width: auto;
    border-radius: 5px;
    border: none;
}

.nav-links {
    list-style: none;

    display: flex;
    gap: 25px;

    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #555555;

    font-weight: 600;
    font-size: 0.95rem;

    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* ======================================================
   3. REUSABLE CONTENT BOX
   ====================================================== */

.content-box {
    max-width: 680px;
    width: 90%;

    background: #ffffff;

    padding: 50px 40px;

    border-radius: 20px;

    box-shadow: 0 15px 35px rgba(0,0,0,0.1);

    box-sizing: border-box;
}

/* ======================================================
   4. HERO SECTION
   ====================================================== */

.hero-wrapper {
    min-height: calc(85vh - 100px);

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 40px;
}

.hero-container {
    text-align: center;
}

.hero-container h1 {
    font-size: 2.5rem;
    color: #2c3e50;

    margin-top: 0;
    margin-bottom: 15px;

    line-height: 1.2;
}

.subtitle {
    font-size: 1.05rem;
    color: #7f8c8d;

    margin-bottom: 35px;

    line-height: 1.7;
}

/* ======================================================
   5. BUTTON
   ====================================================== */

.btn-start {
    display: inline-block;

    padding: 15px 35px;

    font-size: 1.05rem;
    font-weight: bold;

    color: white;
    text-decoration: none;

    background: linear-gradient(135deg, #3498db, #2980b9);

    border-radius: 50px;

    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);

    transition: all 0.3s ease;
}

.btn-start:hover {
    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

/* ======================================================
   6. INFO SECTION
   ====================================================== */

.info-section {
    margin: 40px auto;
    text-align: left;
}

.info-section h3 {
    color: #2c3e50;

    margin-top: 0;
    margin-bottom: 20px;

    font-size: 1.4rem;

    border-bottom: 2px solid #3498db;

    padding-bottom: 10px;
}

.info-section p {
    text-align: center;
    line-height: 1.8;
    color: #555555;
}

.info-section ul {
    padding-left: 22px;

    line-height: 1.9;

    color: #444444;
}

.info-section li {
    margin-bottom: 10px;
}

/* ======================================================
   7. PREDICT PAGE LAYOUT
   ====================================================== */

.predict-main-container {
    max-width: 850px;
    width: 90%;

    margin: 40px auto;
}

.header-back-link {
    margin-bottom: 25px;
}

.header-back-link a {
    text-decoration: none;

    color: #3498db;

    font-weight: 600;
    font-size: 0.95rem;
}

.header-back-link h2 {
    color: #2c3e50;

    margin-top: 10px;
    margin-bottom: 0;
}

/* ======================================================
   8. CARD COMPONENT
   ====================================================== */

.predict-card {
    background: #ffffff;

    padding: 30px;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

    margin-bottom: 30px;
}

.predict-card h3 {
    margin-top: 0;
    margin-bottom: 20px;

    color: #2c3e50;

    border-bottom: 2px solid #f1f3f5;

    padding-bottom: 10px;

    font-size: 1.2rem;
}

/* ======================================================
   9. DRAG & DROP
   ====================================================== */

.drag-drop-zone {
    border: 2px dashed #bdc3c7;

    background-color: #fafbfc;

    border-radius: 12px;

    padding: 40px 20px;

    text-align: center;

    cursor: pointer;

    transition: all 0.3s ease;
}

.drag-drop-zone:hover {
    border-color: #3498db;
    background-color: #f4f9fd;
}

.drag-drop-active {
    border-color: #2ecc71;
    background-color: #f5fdf8;

    transform: scale(0.99);
}

.zone-content svg {
    margin-bottom: 12px;

    transition: transform 0.3s ease;
}

.drag-drop-zone:hover .zone-content svg {
    transform: translateY(-4px);
}

.browse-text {
    color: #3498db;

    font-weight: bold;

    text-decoration: underline;
}

.file-format-info {
    display: block;

    font-size: 0.8rem;
    color: #95a5a6;

    margin-top: 8px;
}

.file-name-badge {
    display: none;

    margin-top: 15px;

    padding: 6px 16px;

    background-color: #e8f8f5;
    color: #117a65;

    font-weight: 600;
    font-size: 0.85rem;

    border-radius: 20px;

    border: 1px solid #a3e4d7;
}

/* ======================================================
   10. BUTTON PREDICT
   ====================================================== */

.btn-predict-submit {
    width: 100%;

    padding: 14px;

    margin-top: 20px;

    font-size: 1rem;
    font-weight: bold;

    color: #ffffff;

    background: linear-gradient(135deg, #2ecc71, #27ae60);

    border: none;
    border-radius: 10px;

    cursor: pointer;

    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);

    transition: all 0.3s ease;
}

.btn-predict-submit:hover {
    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* ======================================================
   11. VISUALIZATION GRID
   ====================================================== */

.visualization-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.vis-item {
    text-align: center;
}

.vis-title {
    font-weight: 600;

    color: #7f8c8d;

    margin-bottom: 10px;

    font-size: 0.9rem;
}

.vis-item img {
    width: 100%;
    height: auto;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    border: 1px solid #e1e8ed;
}

.vis-caption {
    font-size: 0.82rem;

    color: #7f8c8d;

    font-style: italic;

    margin-top: 15px;

    line-height: 1.5;
}

/* ======================================================
   12. RESULT TEXT
   ====================================================== */

.result-text-card {
    border-left: 5px solid #3498db;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid #f1f3f5;
}

.result-row:last-of-type {
    border-bottom: none;
}

.label-field {
    font-weight: 600;
    color: #555555;
}

.value-field {
    font-size: 1.05rem;
}

.class-highlight {
    color: #e74c3c;

    font-weight: bold;

    background-color: #fdedec;

    padding: 5px 14px;

    border-radius: 6px;
}

.confidence-highlight {
    color: #2e7d32;

    font-weight: bold;

    background-color: #e8f5e9;

    padding: 5px 14px;

    border-radius: 6px;
}

/* ======================================================
   13. ERROR ALERT
   ====================================================== */

.system-error-alert {
    margin-top: 15px;

    padding: 12px;

    background-color: #fdf2e9;

    color: #d35400;

    border-radius: 8px;

    font-size: 0.9rem;

    border-left: 4px solid #e67e22;
}

/* ======================================================
   14. RESPONSIVE
   ====================================================== */

@media (max-width: 768px) {

    body {
        padding-top: 90px;
    }

    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero-container h1 {
        font-size: 2rem;
    }

    .content-box {
        padding: 35px 25px;
    }

    .visualization-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .hero-container h1 {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .btn-start {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ======================================================
   15. FOOTER
   ====================================================== */

.footer {
    background-color: #ffffff;   /* sama dengan navbar */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);

    width: 100%;
    padding: 15px 40px;

    text-align: center;
    color: #555555;
    font-size: 0.9rem;

    position: relative;   /* biar muncul di bawah konten */
    bottom: 0;
    box-sizing: border-box;
}