/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================
   LAYOUT WRAPPER
========================= */
.wrap {
    max-width: 1200px;
    margin: auto;
    padding: 16px;
}

/* =========================
   TOOL HEADER
========================= */
.tool-header {
    text-align: center;
    margin-bottom: 24px;
}

.tool-header h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.tool-header p {
    font-size: 17px;
    color: #4b5563;
    max-width: 900px;
    margin: auto;
    line-height: 1.6;
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 20px;
    align-items: start;
}

/* =========================
   CARD
========================= */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   STATS BAR
========================= */
.stats {
    display: flex;
    justify-content: space-between;
    margin: 18px 0;
    text-align: center;
}

.stats div {
    flex: 1;
}

.stats span {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #2563eb;
}

.stats small {
    color: #6b7280;
    font-size: 13px;
}

/* =========================
   TEXT DISPLAY BOX
========================= */
.text-box {
    background: #f0f2f7;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    max-height: 160px;
    overflow-y: auto;
    font-size: 18px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* =========================
   TYPING HIGHLIGHTS
========================= */
.char {
    color: #6b7280;
}

.correct {
    color: #16a34a;
    font-weight: 600;
}

.wrong {
    color: #dc2626;
    background: #fee2e2;
    border-radius: 4px;
}

.active {
    background: #dbeafe;
    border-radius: 4px;
}

/* =========================
   INPUT AREA
========================= */
textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* =========================
   BUTTON
========================= */
button {
    width: 100%;
    padding: 14px;
    margin-top: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    opacity: 0.95;
}

/* =========================
   RESULT
========================= */
.result {
    margin-top: 16px;
    text-align: center;
    font-size: 16px;
}

/* =========================
   KEYBOARD PLACEHOLDER
========================= */
.keyboard {
    margin-top: 16px;
    width: 100%;
    overflow-x: auto;
}

/* =========================
   SIDEBAR
========================= */
.tool-sidebar h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.tool-sidebar h4 {
    margin-top: 18px;
    font-size: 16px;
    color: #1e40af;
}

/* FEATURE & BENEFIT LISTS */
.feature-list,
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.feature-list li,
.benefit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: #374151;
}

.feature-list li span,
.benefit-list li span {
    font-size: 18px;
}

/* FAQ */
.faq p {
    background: #f9fafb;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 12px;
    }

    .text-box {
        font-size: 16px;
    }
}
.extra-section {
    margin-top: 30px;
}

.info-card {
    text-align: center;
    margin-bottom: 20px;
}

.info-card h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.info-grid h3 {
    margin-top: 0;
    font-size: 18px;
    color: #1f2937;
}

.info-grid p {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}
.options {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.option-group {
    flex: 1;
    min-width: 140px;
}

.option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.option-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

