/* CSS SOFT BRUTALISM - Team Generator */
.team-neo-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border: 3px solid #000000;
    border-radius: 12px;
    box-shadow: 8px 8px 0px #000000;
    padding: 30px;
    color: #000000;
    box-sizing: border-box;
}

.team-neo-wrapper * { box-sizing: border-box; }

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

.team-main-layout { display: flex; flex-direction: column; gap: 30px; }
@media (min-width: 800px) {
    .team-main-layout { flex-direction: row; align-items: stretch; }
    .team-controls { flex: 4; }
    .team-result-section { flex: 5; }
}

.team-controls { display: flex; flex-direction: column; gap: 15px; }

.team-group { display: flex; flex-direction: column; gap: 8px; }
.team-group label { font-weight: 900; font-size: 1.05rem; color: #000; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; }

.team-neo-input { width: 100%; padding: 12px; font-size: 1.1rem; font-weight: 900; border-radius: 8px; border: 3px solid #000; background: #fff; color: #000; outline: none; box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05); transition: 0.1s; }
.team-neo-input:focus { border-color: #ff595e; }

.neo-textarea { width: 100%; height: 180px; padding: 15px; font-family: monospace, system-ui; font-size: 1.05rem; font-weight: 800; color: #000; border: 3px solid #000; border-radius: 8px; background: #fff; resize: vertical; overflow-y: auto; outline: none; line-height: 1.5; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05);}
.neo-textarea:focus { background: #e0fbfc; }

.quick-generate { display: flex; flex-direction: row; gap: 10px; }
.quick-generate input { flex: 1; }
.quick-generate button { flex: 2; }

.team-divider { border: none; border-top: 3px dashed #000; margin: 5px 0; opacity: 0.5; }

/* Custom Checkbox */
.checkbox-container { display: flex; align-items: center; cursor: pointer; font-weight: 900; font-size: 1.1rem; user-select: none; }
.checkbox-container input { margin-right: 10px; width: 22px; height: 22px; accent-color: #000; cursor: pointer; }

/* Buttons */
.team-actions-row { display: flex; gap: 15px; margin-top: 10px; flex-wrap: wrap; }
.btn-neo-primary { flex: 2; min-width: 180px; cursor: pointer; font-size: 1.2rem; font-weight: 900; padding: 15px; background-color: #ffca3a; border: 3px solid #000; border-radius: 8px; box-shadow: 4px 4px 0px #000; text-transform: uppercase; color: #000; transition: transform 0.1s, box-shadow 0.1s; }
.btn-neo-primary:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #000; }

.btn-neo-secondary { flex: 1; cursor: pointer; font-size: 1rem; font-weight: 900; padding: 12px; background-color: #e2f0cb; border: 3px solid #000; border-radius: 8px; box-shadow: 3px 3px 0px #000; text-transform: uppercase; color: #000; transition: transform 0.1s, box-shadow 0.1s; display: flex; align-items: center; justify-content: center;}
.btn-neo-secondary:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #000; }
.btn-clear { background-color: #f4f4f4; color: #000; }

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

/* Khu vực Kết quả */
.team-result-section { background-color: #f4f4f4; border: 3px solid #000; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; max-height: 800px; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 3px solid #000; padding-bottom: 10px; }
.result-header h3 { margin: 0; font-size: 1.5rem; text-transform: uppercase; font-weight: 900; }

.team-output { flex-grow: 1; overflow-y: auto; padding-right: 5px; }

/* Card Đội */
.team-card { border: 3px solid #000; border-radius: 8px; margin-bottom: 15px; background-color: #ffffff; box-shadow: 4px 4px 0px #000; overflow: hidden; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.team-title { padding: 12px 15px; font-weight: 900; font-size: 1.2rem; border-bottom: 3px solid #000; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-title-left { display: flex; align-items: center; gap: 8px; }
.team-power-badge { background: #fff; border: 2px solid #000; padding: 3px 8px; border-radius: 12px; font-size: 0.9rem; font-weight: 900; box-shadow: 2px 2px 0px #000; }

.team-list { list-style: none; margin: 0; padding: 0; }
.team-list li { padding: 10px 15px; border-bottom: 2px dashed #ccc; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; }
.team-list li:last-child { border-bottom: none; }
.member-score { color: #ff595e; font-weight: 900; font-size: 0.95rem; }

.bg-color-1 { background-color: #ffb7b2; } .bg-color-2 { background-color: #b5ead7; } 
.bg-color-3 { background-color: #ffdac1; } .bg-color-4 { background-color: #cbaacb; } 
.bg-color-5 { background-color: #e2f0cb; } .bg-color-6 { background-color: #8ac926; }
.bg-bench { background-color: #d3d3d3; color: #000; }

.empty-state { text-align: center; color: #444; margin-top: 50px; font-style: italic; font-weight: 800; }

#toastTeam { visibility: hidden; min-width: 200px; background-color: #000; color: #fff; 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; }
#toastTeam.show { visibility: visible; opacity: 1; bottom: 50px; }