.bench-soft-wrapper {
    /* Biến CSS độc lập */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f4f4f5;
    --clr-yellow: #fde74c;
    --clr-cyan: #00f5d4;
    --clr-red: #ff006e;
    --clr-green: #06d6a0;
    --clr-white: #ffffff;
    --clr-text: #111111;

    max-width: 1200px; 
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--clr-text);
    background: var(--bg-main);
    padding: 20px;
    border: var(--neo-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0px #111111;
}

.bench-soft-wrapper * { box-sizing: border-box; }

.bench-soft-header {
    background: #111; padding: 20px; color: #fff;
    border: var(--neo-border); border-radius: 12px;
    text-align: center; margin-bottom: 20px; box-shadow: var(--neo-shadow);
}
.bench-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: var(--clr-yellow); text-transform: uppercase;}
.bench-soft-header p { margin: 0; font-weight: 600; font-size: 0.95rem; color: #ccc;}

/* BỐ CỤC 2 CỘT */
.bench-main-layout { display: flex; flex-direction: column; gap: 20px; }
.bench-col { display: flex; flex-direction: column; gap: 20px; min-width: 0;}
@media (min-width: 768px) { 
    .bench-main-layout { flex-direction: row; align-items: stretch; } 
    .bench-col-left { flex: 5; }
    .bench-col-right { flex: 5; }
}

/* CARDS */
.bench-card {
    padding: 20px; border: var(--neo-border); background: #fff;
    border-radius: 12px; box-shadow: var(--neo-shadow); display: flex; flex-direction: column;
}
.bench-bg-yellow { background: var(--clr-yellow); }
.bench-bg-white { background: var(--clr-white); }
.bench-bg-dark { background: #111; color: #fff; box-shadow: 5px 5px 0px var(--clr-cyan);}
.bench-flex-between { display: flex; justify-content: space-between; align-items: center; }

.bench-section-title { font-size: 1.1rem; font-weight: 900; color: #111; text-transform: uppercase; }

/* NÚT VÀ INPUT CƠ BẢN */
.bench-btn-action {
    width: 100%; background: #111; color: var(--clr-cyan); padding: 15px;
    border: 3px solid #111; border-radius: 8px; font-size: 1.1rem; font-weight: 900;
    cursor: pointer; box-shadow: 4px 4px 0px #111; transition: 0.1s; text-transform: uppercase;
}
.bench-btn-action:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111; }

.bench-btn-action:disabled { background: #555; color: #aaa; cursor: not-allowed; box-shadow: none; transform: none;}

.bench-btn-small {
    padding: 6px 12px; background: #fff; border: 2px solid #111; border-radius: 6px;
    font-weight: 900; font-size: 0.85rem; cursor: pointer; box-shadow: 2px 2px 0px #111; transition: 0.1s; color: #111;
}
.bench-btn-small:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

.bench-btn-delete {
    background: var(--clr-red); color: #fff; border: 2px solid #111; border-radius: 6px;
    font-weight: bold; cursor: pointer; padding: 4px 8px; box-shadow: 2px 2px 0px #111;
}
.bench-btn-delete:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

/* TEXTAREA */
.bench-textarea {
    width: 100%; min-height: 100px; padding: 12px; border: 3px solid #111; border-radius: 8px;
    font-size: 1rem; outline: none; font-family: monospace; resize: vertical; line-height: 1.5; background: #fff; color: #111; font-weight: bold; box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05);
}
.bench-textarea:focus { border-color: var(--clr-cyan); }
.bench-textarea-dark { background: #222; color: #00f5d4; border-color: #555; box-shadow: none;}
.bench-textarea-dark:focus { border-color: var(--clr-yellow); }

/* DANH SÁCH TEST CASES */
.bench-cases-list { display: flex; flex-direction: column; gap: 15px; }
.bench-case-item {
    background: #fdfdfd; border: 2px solid #111; border-radius: 8px; padding: 15px;
    box-shadow: 3px 3px 0px #111; display: flex; flex-direction: column; gap: 10px;
}
.bench-case-header { display: flex; justify-content: space-between; align-items: center; }
.bench-case-title-input {
    flex: 1; margin-right: 10px; padding: 5px 10px; border: 2px dashed #ccc; border-radius: 4px;
    font-size: 0.95rem; font-weight: bold; outline: none; background: transparent;
}
.bench-case-title-input:focus { border-color: #111; background: #fff; }

/* KẾT QUẢ HIỂN THỊ (BAR CHARTS) */
.bench-results-wrapper { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.bench-empty-state { text-align: center; padding: 30px 10px; color: #555; border: 2px dashed #ccc; border-radius: 8px; }

.bench-result-item { display: flex; flex-direction: column; gap: 5px; }
.bench-result-header { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 900; }
.bench-result-name { text-transform: uppercase; color: #111; }
.bench-result-ops { color: #555; font-family: monospace; }
.bench-result-ops b { font-size: 1.1rem; color: #111; }

.bench-bar-track { width: 100%; height: 24px; background: #eee; border: 2px solid #111; border-radius: 12px; overflow: hidden; position: relative; }
.bench-bar-fill { height: 100%; width: 0%; background: #111; transition: width 0.5s ease-out; }
.bench-bar-fill.fastest { background: var(--clr-green); }
.bench-bar-fill.slowest { background: var(--clr-red); }
.bench-bar-fill.error { background: #333; width: 100% !important; }

.bench-badge { background: #eee; padding: 4px 10px; border: 2px solid #111; border-radius: 6px; font-weight: 900; font-size: 0.85rem; box-shadow: 2px 2px 0px #111; white-space: nowrap;}
.bench-badge.active { background: var(--clr-green); color: #111; }

/* INFO BOX */
.bench-info-box { background: rgba(255,255,255,0.6); padding: 15px; border: 2px dashed #111; border-radius: 8px; margin-top: auto;}
.bench-info-box h4 { margin: 0 0 5px 0; font-weight: 900; color: #111; font-size: 1rem;}
.bench-info-box p { margin: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.5; color: #333;}