/* GIAO DIỆN SOFT BRUTALISM - WCAG CHECKER */
.tool-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1000px; 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 1.5fr; gap: 30px; margin-bottom: 30px; }

/* --- Điều Khiển Nhập Màu --- */
.controls-panel {
    background-color: #f4f4f4; border: 3px solid #111111; border-radius: 8px;
    padding: 25px; box-shadow: 4px 4px 0px #111111;
}

.input-group label { display: block; font-weight: 800; margin-bottom: 10px; font-size: 1.05rem; }

.color-picker-wrapper { display: flex; gap: 10px; align-items: center; }

.color-picker-wrapper input[type="color"] {
    width: 60px; height: 50px; padding: 0; border: 3px solid #111111;
    border-radius: 8px; cursor: pointer; background: none; box-shadow: 2px 2px 0px #111111;
}

.color-picker-wrapper input[type="text"] {
    flex: 1; height: 50px; padding: 10px 15px; font-size: 1.1rem; font-weight: 700; font-family: monospace;
    border: 3px solid #111111; border-radius: 8px; outline: none; box-shadow: 2px 2px 0px #111111; text-transform: uppercase;
}
.color-picker-wrapper input[type="text"]:focus { background-color: #e6f7ff; }

.switch-btn-wrap { text-align: center; margin: 15px 0; }
.btn-swap {
    background-color: #ffdac1; cursor: pointer; font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.95rem; padding: 10px 20px; border: 3px solid #111111;
    border-radius: 20px; box-shadow: 3px 3px 0px #111111; transition: transform 0.1s;
}
.btn-swap:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111111; }

/* --- Vùng Preview & Tỷ Lệ --- */
.preview-panel { display: flex; flex-direction: column; gap: 20px; }

.preview-box {
    flex: 1; border: 3px solid #111111; border-radius: 8px; padding: 30px;
    background-color: #fdfd96; color: #111111; box-shadow: 4px 4px 0px #111111;
    display: flex; flex-direction: column; justify-content: center; gap: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.preview-text-large { font-size: 1.8rem; font-weight: 900; line-height: 1.2; }
.preview-text-normal { font-size: 1rem; font-weight: 400; line-height: 1.6; }

.ratio-box {
    background-color: #111111; color: #ffffff; border-radius: 8px; padding: 20px;
    text-align: center; box-shadow: 4px 4px 0px #111111; border: 3px solid #111111;
}
.ratio-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; color: #ccc; letter-spacing: 1px; }
.ratio-value { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3rem; margin: 5px 0; color: #b5ead7; }
.ratio-desc { font-size: 0.85rem; color: #999; }

/* --- Bảng Kết Quả WCAG --- */
.wcag-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.wcag-card { border: 3px solid #111111; border-radius: 8px; padding: 20px; background-color: #fff; box-shadow: 4px 4px 0px #111111; }
.wcag-card h4 { margin: 0 0 5px 0; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; }
.wcag-card small { color: #666; font-size: 0.9rem; display: block; margin-bottom: 15px; border-bottom: 2px dashed #ddd; padding-bottom: 10px; }

.wcag-score-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wcag-score-row:last-child { margin-bottom: 0; }
.wcag-level { font-size: 1rem; font-weight: 600; }

.badge {
    padding: 6px 12px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 0.9rem;
    border: 2px solid #111111; border-radius: 6px; box-shadow: 2px 2px 0px #111111;
}
.badge-pass { background-color: #5FB376; color: #fff; } /* Xanh lá */
.badge-fail { background-color: #e05a47; color: #fff; } /* Đỏ */

@media (max-width: 850px) {
    .main-layout { grid-template-columns: 1fr; }
    .wcag-results-grid { grid-template-columns: 1fr; }
}