body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 0 2rem 0;
    background-color: #f5f5f5;
    padding-top: 70px;
}

/* Prevent content from sliding under the fixed header */
#scroll-container {
    overflow-y: auto;
    height: calc(100vh - 150px); /* adjust based on header/footer height */
    padding-bottom: 2rem;
}

/* Prevent print from breaking layout */
@media print {
    header, footer {
        display: none !important;
    }

    #scroll-container {
        height: auto !important;
        overflow: visible !important;
    }
}


/* --------------------------------------------------
    Global Styles
-------------------------------------------------- */

body {
    background-color: #f0f2f5;
    font-family: "Inter", Arial, sans-serif;
    padding-bottom: 50px;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

/* --------------------------------------------------
    Layout Container
-------------------------------------------------- */

.container-box {
    background: #ffffff;
    padding: 2rem 2.5rem;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* --------------------------------------------------
    Form Elements
-------------------------------------------------- */

.form-label {
    font-weight: 600;
    margin-top: 1rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
    border-radius: 8px;
}

.btn-primary {
    background-color: #3b5bdb;
    border-color: #3b5bdb;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #304bcc;
        border-color: #304bcc;
    }

.btn-secondary {
    background-color: #868e96;
    border-color: #868e96;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
}

    .btn-secondary:hover {
        background-color: #72808a;
        border-color: #72808a;
    }

.no-print {
    margin-top: 1rem;
}

/* --------------------------------------------------
    Results Section
-------------------------------------------------- */

#results h2 {
    margin-top: 2rem;
    font-weight: 700;
}

.score-grid {
    margin-top: 1rem;
}

.results-table {
    margin-top: 1.5rem;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

    .results-table th {
        background-color: #3b5bdb;
        color: white;
    }

    .results-table td,
    .results-table th {
        padding: 0.75rem;
        vertical-align: top;
    }

/* --------------------------------------------------
    Vocabulary & N-Grams
-------------------------------------------------- */

.vocab-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
}

    .vocab-box strong {
        color: #3b5bdb;
    }

/* --------------------------------------------------
    Print Styles
-------------------------------------------------- */

@media print {

    .no-print,
    header,
    footer,
    form {
        display: none !important;
    }

    body {
        background: white;
        padding: 0;
    }

    .container-box {
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .results-table {
        box-shadow: none;
    }
}


