/* ==============================
   Global Styles
   ============================== */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    min-height: 100vh;
}


/* ==============================
   Main Container
   ============================== */

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 0;
}


/* ==============================
   Header
   ============================== */

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 40px;
    color: #1e3a8a;
    margin-bottom: 12px;
}

header p {
    max-width: 700px;
    margin: 0 auto;
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
}


/* ==============================
   Main Section
   ============================== */

.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: stretch;
}


/* ==============================
   Cards
   ============================== */

.card {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

.card h2 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 22px;
}


/* ==============================
   Labels
   ============================== */

label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-top: 20px;
    margin-bottom: 8px;
}


/* ==============================
   Textarea
   ============================== */

textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea::placeholder {
    color: #94a3b8;
}

textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ==============================
   Select Dropdown
   ============================== */

select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    color: #334155;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ==============================
   Hugging Face Token Input
   ============================== */

#hfToken {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    color: #1e293b;
    font-family: monospace;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#hfToken::placeholder {
    color: #94a3b8;
}

#hfToken:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ==============================
   Button
   ============================== */

button {
    width: 100%;
    margin-top: 25px;
    padding: 14px 20px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

button:hover {
    background: #1d4ed8;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.25);
}

button:active {
    transform: translateY(1px);
}


/* ==============================
   Result Section
   ============================== */

#result {
    min-height: 250px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-y: auto;
}


/* ==============================
   Result Scrollbar
   ============================== */

#result::-webkit-scrollbar {
    width: 7px;
}

#result::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#result::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#result::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* ==============================
   Responsive Design
   ============================== */

@media (max-width: 800px) {

    .container {
        width: 92%;
        padding: 35px 0;
    }

    header h1 {
        font-size: 32px;
    }

    header p {
        font-size: 15px;
    }

    .main {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 22px;
    }
}


/* ==============================
   Mobile
   ============================== */

@media (max-width: 500px) {

    .container {
        width: 94%;
        padding: 25px 0;
    }

    header {
        margin-bottom: 25px;
    }

    header h1 {
        font-size: 27px;
    }

    header p {
        font-size: 14px;
    }

    .card h2 {
        font-size: 19px;
    }

    textarea {
        min-height: 150px;
    }

    button {
        font-size: 15px;
    }
}