/* GIAO DIỆN SOFT BRUTALISM - TEXT FORMATTER */
.tool-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1100px;
    margin: 20px auto;
    border: 3px solid #111111;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #111111;
    padding: 30px;
    background: #ffffff;
    color: #111111;
    box-sizing: border-box;
}

h2.tool-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 900;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.input-box { display: flex; flex-direction: column; }
.input-box label { display: block; font-weight: 800; margin-bottom: 10px; font-size: 1.05rem; }

.input-box textarea {
    width: 100%; height: 350px; padding: 20px; font-size: 1.1rem;
    font-family: 'Inter', sans-serif; border: 3px solid #111111;
    border-radius: 8px; outline: none; box-sizing: border-box;
    background-color: #f9f9f9; box-shadow: 4px 4px 0px #111111;
    transition: box-shadow 0.2s, background-color 0.2s; resize: vertical; line-height: 1.6;
}

.input-box textarea:focus { background-color: #ffffff; box-shadow: 6px 6px 0px #111111; }
#tfOutput { background-color: #e2f0cb; font-weight: 500; } /* Màu xanh lá pastel */

/* Khu vực tùy chọn */
.options-panel {
    background-color: #f4f4f4; padding: 25px; border: 3px solid #111111;
    border-radius: 8px; margin-bottom: 25px; display: grid;
    grid-template-columns: 1fr 1fr; gap: 30px;
}

.option-title { margin: 0 0 15px 0; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; border-bottom: 2px dashed #ccc; padding-bottom: 8px; }

.checkbox-container {
    display: flex; align-items: flex-start; cursor: pointer;
    font-weight: 600; font-size: 1rem; user-select: none; margin-bottom: 12px; line-height: 1.4;
}
.checkbox-container:last-child { margin-bottom: 0; }
.checkbox-container input { margin-right: 10px; margin-top: 3px; width: 18px; height: 18px; accent-color: #111111; cursor: pointer; flex-shrink: 0; }

/* Nút bấm */
.action-buttons { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 15px; }

.action-buttons button {
    cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 1.1rem;
    font-weight: 900; padding: 15px; border: 3px solid #111111; border-radius: 8px;
    box-shadow: 4px 4px 0px #111111; transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase; color: #111111;
}
.action-buttons button:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111111; }
.action-buttons button:disabled { background-color: #ddd; color: #888; cursor: not-allowed; box-shadow: 4px 4px 0px #111111; }

.btn-clean { background-color: #ffdac1; } /* Cam pastel */
.btn-copy { background-color: #97c1a9; } 
.btn-clear { background-color: #eceae4; } 

/* Toast Thông báo */
#toastTF {
    visibility: hidden; min-width: 200px; background-color: #111111; color: #ffffff;
    text-align: center; border-radius: 8px; padding: 12px; position: fixed;
    z-index: 9999; bottom: 30px; left: 50%; transform: translateX(-50%);
    font-weight: bold; opacity: 0; transition: opacity 0.3s, bottom 0.3s;
}
#toastTF.show { visibility: visible; opacity: 1; bottom: 50px; }

@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .options-panel { grid-template-columns: 1fr; gap: 20px; }
    .action-buttons { grid-template-columns: 1fr; }
}