* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #ffffff;
}

.page-wrapper {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
}

/* Left Section */
.left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 420px;
    background-color: #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.card h1 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 24px;
}

/* Upload */
input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 10px 18px;
    background-color: #d1d5db;
    color: #0f172a;
    border-radius: 8px;
    cursor: pointer;
}

.file-label:hover {
    background-color: #cbd5e1;
}

.file-name {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #1f2937;
}

button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #0f172a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.status {
    margin-top: 16px;
    font-size: 0.9rem;
}

.status.success {
    color: #065f46;
}

.status.error {
    color: #7f1d1d;
}

/* Divider */
.divider {
    width: 2px;
    background-color: #d1d5db;
}

/* Right Section */
.right-section {
    flex: 1;
    padding: 32px;
    background-color: #f9fafb;
    overflow-y: auto;
}

.output-container {
    max-width: 720px;
    margin: 0 auto;
}

.output-container h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #0f172a;
}

.placeholder {
    color: #6b7280;
    font-size: 0.95rem;
}

.output-text {
    display: none;
    white-space: pre-wrap;
    margin-top: 16px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    color: #111827;
    line-height: 1.5;
}

/* =========================
   Responsive Layout
   ========================= */

/* Tablet */
@media (max-width: 1024px) {

    .left-section,
    .right-section {
        padding: 20px;
    }

    .output-container {
        max-width: 100%;
    }
}

/* Mobile */
/* @media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 2px;
    }

    .left-section,
    .right-section {
        flex: none;
        width: 100%;
        padding: 20px;
    }

    .card {
        max-width: 100%;
    }

    .output-container h2 {
        text-align: center;
    }

    .output-text {
        font-size: 0.9rem;
    }
} */

/* .page-wrapper {
    display: flex;
    min-height: 100vh;
} */

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 2px;
    }

    .left-section,
    .right-section {
        width: 100%;
    }

    .right-section {
        overflow-y: visible;
    }
}
