@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

.hidden { display: none !important; }

.color-neo-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 1100px; margin: 20px auto;
    border: 3px solid #000; border-radius: 12px;
    box-shadow: 8px 8px 0px #000; padding: 25px;
    background: #fff; color: #000; box-sizing: border-box;
}
.color-neo-wrapper * { box-sizing: border-box; }

.color-header {
    background: #fdfd96; padding: 15px 20px; border-radius: 12px;
    border: 3px solid #000; box-shadow: 4px 4px 0px #000; margin-bottom: 30px; text-align: center;
}
.color-header h2 { margin: 0 0 5px 0; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; }
.color-header p { margin: 0; font-weight: 800; font-size: 0.95rem; }

.section-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin: 0 0 15px 0; border-left: 6px solid #ff595e; padding-left: 10px; }
.neo-divider { border: 0; height: 4px; background: #000; margin: 35px 0; border-radius: 2px; }

/* PHẦN TÌM KIẾM ĐỘNG */
.color-search-box { display: flex; gap: 15px; margin-bottom: 15px; }
.color-neo-input {
    flex-grow: 1; padding: 15px 20px; font-size: 1.2rem; font-weight: 900; font-family: monospace;
    border-radius: 8px; border: 3px solid #000; background: #f4f4f4; color: #000;
    outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); transition: 0.1s;
}
.color-neo-input:focus { border-color: #ff595e; background: #fff; }

.color-btn-clear {
    cursor: pointer; font-size: 1.1rem; font-weight: 900; padding: 0 20px;
    background-color: #ffb7b2; border: 3px solid #000; border-radius: 8px; box-shadow: 4px 4px 0px #000;
    text-transform: uppercase; color: #000; transition: 0.1s; white-space: nowrap;
}
.color-btn-clear:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #000; }

.color-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; justify-content: center; }
.filter-badge {
    cursor: pointer; padding: 8px 15px; border: 2px solid #000; border-radius: 20px;
    font-weight: 900; font-size: 0.9rem; background: #fff; box-shadow: 2px 2px 0px #000; transition: 0.1s;
}
.filter-badge:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #000; }
.filter-badge.active { background: #ffca3a; }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 15px; background: #e2f0cb; border: 3px solid #000; border-radius: 12px; box-shadow: inset 4px 4px 0px rgba(0,0,0,0.05); }
.color-empty { text-align: center; font-weight: 900; font-size: 1.2rem; background: #ffb7b2; padding: 20px; border: 3px dashed #000; border-radius: 8px; }

/* COMPONENT: COLOR CARD DÙNG CHUNG */
.color-card {
    background: #fff; border: 3px solid #000; border-radius: 8px;
    box-shadow: 4px 4px 0px #000; display: flex; align-items: stretch; overflow: hidden;
    transition: transform 0.1s; animation: colorFade 0.3s ease-out;
}
.color-card:hover { transform: translateY(-3px); }
.color-swatch { width: 70px; flex-shrink: 0; border-right: 3px solid #000; }
.color-info { padding: 12px 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.color-formula { font-family: monospace; font-size: 1.3rem; font-weight: 900; color: #ff595e; margin-bottom: 5px; }
.color-desc { font-weight: 700; font-size: 0.95rem; color: #333; margin: 0; line-height: 1.4; }

/* PHẦN BẢNG DỮ LIỆU TĨNH */
.static-data-area { display: flex; flex-direction: column; gap: 30px; }
.static-group { border: 3px solid #000; border-radius: 12px; overflow: hidden; box-shadow: 5px 5px 0px #000; background: #fff; }
.static-group-title {
    background: #b5ead7; padding: 12px 20px; font-size: 1.3rem; font-weight: 900; text-transform: uppercase;
    border-bottom: 3px solid #000; display: flex; align-items: center; justify-content: space-between;
}
.static-group-count { background: #000; color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 0.9rem; }
.static-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; padding: 20px; background: #f9f9f9; }

@keyframes colorFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    .color-search-box { flex-direction: column; }
    .color-btn-clear { padding: 15px; }
    .color-grid, .static-list { grid-template-columns: 1fr; }
}