/* GIAO DIỆN SOFT BRUTALISM - OUTLINE GENERATOR */
.tool-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 900px;
    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;
}

.tool-container h1 {
    font-family: 'Montserrat', sans-serif; font-size: 2rem;
    text-align: center; text-transform: uppercase;
    margin-top: 0; margin-bottom: 25px; font-weight: 900;
}

/* SEO Meta Box */
.seo-meta-box {
    background-color: #f4f4f4; padding: 20px;
    border: 3px solid #111111; border-radius: 8px; margin-bottom: 20px;
}
.input-group { margin-bottom: 15px; }
.input-group:last-child { margin-bottom: 0; }
.input-group label { display: block; font-weight: 800; margin-bottom: 8px; }
.input-group input, .input-group textarea {
    width: 100%; padding: 12px; font-size: 1rem; font-family: 'Inter', sans-serif;
    border: 3px solid #111111; border-radius: 8px; outline: none;
    box-sizing: border-box; background-color: #fff; transition: 0.1s;
}
.input-group input:focus, .input-group textarea:focus { box-shadow: 4px 4px 0px #111111; }

.divider { border: none; border-top: 3px dashed #111111; margin: 25px 0; }

/* Heading Toolbar */
.heading-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center;
}
.heading-toolbar button, .btn-toggle-num {
    cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 800;
    padding: 10px 15px; border: 3px solid #111111; border-radius: 8px;
    box-shadow: 3px 3px 0px #111111; transition: 0.1s; color: #111111; user-select: none;
}
.heading-toolbar button:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111111; }

.btn-h1 { background-color: #ffb7b2; } /* Pastel Red */
.btn-h2 { background-color: #fdfd96; } /* Pastel Yellow */
.btn-h3 { background-color: #b5ead7; } /* Pastel Green */
.btn-h4 { background-color: #cbaacb; } /* Pastel Purple */
.btn-h5 { background-color: #ffdac1; } /* Pastel Orange */
.btn-toggle-num { background-color: #111; color: #fff !important; margin-left: auto; box-shadow: none !important;}

/* Editor Area */
.editor-area {
    background-color: #fff; border: 3px solid #111111; border-radius: 8px;
    min-height: 200px; padding: 20px; margin-bottom: 20px; box-shadow: inset 4px 4px 0px rgba(0,0,0,0.05);
}
.empty-state { text-align: center; color: #666; font-weight: 500; margin-top: 40px; line-height: 1.6; }

/* Outline Blocks */
.block-item {
    display: flex; align-items: center; margin-bottom: 10px; gap: 10px;
    background: #fff; padding: 5px; border: 2px solid transparent; transition: 0.2s;
}
.block-item.dragging { opacity: 0.5; border: 2px dashed #111; background: #f4f4f4; }
.drag-handle { cursor: grab; font-size: 1.2rem; color: #888; user-select: none; padding: 0 5px; }
.drag-handle:active { cursor: grabbing; }

.block-tag { font-weight: 800; width: 35px; text-align: center; font-size: 0.9rem; padding: 5px; border-radius: 4px; border: 2px solid #111;}
.tag-h1 { background-color: #ffb7b2; }
.tag-h2 { background-color: #fdfd96; }
.tag-h3 { background-color: #b5ead7; }
.tag-h4 { background-color: #cbaacb; }
.tag-h5 { background-color: #ffdac1; }

.block-num { font-weight: 800; color: #555; min-width: 30px; }
.block-input {
    flex: 1; padding: 8px 10px; font-size: 1rem; border: 2px solid #ccc;
    border-radius: 6px; outline: none; font-family: 'Inter', sans-serif; transition: 0.1s;
}
.block-input:focus { border-color: #111111; }
.btn-delete-block {
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #ff4d4d; opacity: 0.5; transition: 0.1s;
}
.btn-delete-block:hover { opacity: 1; transform: scale(1.1); }

/* Action Buttons */
.action-buttons { display: grid; grid-template-columns: 2fr 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 { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111111; }
.btn-copy { background-color: #b5ead7; }
.btn-clear { background-color: #eceae4; } 

/* Toast */
#toastOutline {
    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: 0.3s;
}
#toastOutline.show { visibility: visible; opacity: 1; bottom: 50px; }

@media (max-width: 600px) {
    .action-buttons { grid-template-columns: 1fr; }
    .heading-toolbar { justify-content: center; }
}