.platoons-container { display: flex; gap: 24px; flex-wrap: wrap; }
.platoons-sidebar { width: 300px; flex-shrink: 0; background: white; border-radius: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); padding: 20px; }
.platoons-sidebar .select-collection { margin-bottom: 20px; }
.platoons-sidebar .select-collection label { font-weight: 500; display: block; margin-bottom: 8px; }
.platoons-sidebar select { width: 100%; padding: 10px 12px; border-radius: 16px; border: 1px solid #e2e8f0; font-family: inherit; }
.platoons-sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.platoons-sidebar-header h3 { font-size: 1.2rem; margin: 0; }
.add-platoon-btn { background: #3b82f6; color: white; border: none; border-radius: 40px; padding: 8px 16px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: background 0.2s; }
.add-platoon-btn:hover { background: #2563eb; }
.platoons-list { list-style: none; margin: 0 0 20px 0; padding: 0; }

.platoon-item { position: relative; flex-direction: column; align-items: flex-start; padding: 12px; margin-bottom: 8px; background: #f8fafc; border-radius: 16px; cursor: pointer; transition: all 0.2s; overflow: hidden; }
.platoon-item:hover { background: #e0f2fe; }
.platoon-item.active { background: #3b82f6; color: white; }

.platoon-count-badge { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; padding: 2px 6px; border-radius: 14px; background: #e2e8f0; color: #1e293b; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.platoon-item.active .platoon-count-badge { background: rgba(255, 255, 255, 0.3); color: white; }
body.dark-theme .platoon-count-badge { background: #334155; color: #e2e8f0; }

.platoon-item-content { width: 100%; }
.platoon-item-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.platoon-name { font-weight: 700; font-size: 0.95rem; }

.platoon-schools-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.platoon-school-badge { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; white-space: nowrap; }
.platoon-item.active .platoon-school-badge { background: rgba(255, 255, 255, 0.25); color: white; }
body.dark-theme .platoon-school-badge { background: #1e3a5f; color: #93c5fd; }

.platoons-main { flex: 1; background: white; border-radius: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); padding: 20px; display: flex; flex-direction: column; }
.platoon-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #e2e8f0; flex-wrap: wrap; gap: 12px; }
.platoon-header h2 { margin: 0; font-size: 1.4rem; }
.platoon-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-add-to-platoon, .btn-remove-from-platoon { background: #3b82f6; color: white; border: none; border-radius: 40px; padding: 8px 16px; cursor: pointer; font-weight: 500; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.btn-add-to-platoon { background: #10b981; }
.btn-remove-from-platoon { background: #ef4444; }
.btn-add-to-platoon:hover, .btn-remove-from-platoon:hover { filter: brightness(0.95); }
.people-grid { flex: 1; background: #f8fafc; border-radius: 20px; padding: 16px; overflow-y: auto; }
.people-list-container h4 { margin: 0 0 12px 0; font-size: 1rem; }
.people-list { list-style: none; margin: 0 0 24px 0; padding: 0; min-height: 100px; }
.people-list li { background: white; margin-bottom: 8px; padding: 12px 16px; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.person-name { font-weight: 500; flex: 2; }
.person-school { font-size: 0.8rem; color: #64748b; flex: 2; }
.person-platoon { font-size: 0.8rem; background: #e2e8f0; padding: 2px 8px; border-radius: 20px; color: #1e293b; flex: 1; text-align: center; }
.empty-message { text-align: center; color: #94a3b8; padding: 40px; }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.select-all-label { font-size: 0.85rem; font-weight: normal; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.select-all-checkbox { margin: 0; }

.platoons-unassigned-panel { width: 300px; flex-shrink: 0; background: white; border-radius: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); padding: 20px; font-size: 0.9rem; }
body.dark-theme .platoons-unassigned-panel { background: #1e293b; }
.platoons-unassigned-panel h3 { margin: 0 0 16px 0; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; font-size: 1.1rem; }
body.dark-theme .platoons-unassigned-panel h3 { border-bottom-color: #334155; color: #e2e8f0; }
.unassigned-toolbar { margin-bottom: 16px; }
.unassigned-school-group { margin-bottom: 16px; }
.unassigned-school-header { margin-bottom: 2px; }
.unassigned-school-badge { background: #fef3c7; color: #92400e; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; display: inline-block; margin-bottom: 6px; }
body.dark-theme .unassigned-school-badge { background: #78350f; color: #fde68a; }
.unassigned-count-badge { background: #fde68a; color: #92400e; padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; margin-left: 6px; }
body.dark-theme .unassigned-count-badge { background: #92400e; color: #fde68a; }
.unassigned-school-list { list-style: none; margin: 0; padding: 0; }
.unassigned-school-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.85rem; }

.clear-platoons-btn, .btn-auto-distribute { width: 100%; padding: 10px 16px; border-radius: 16px; border: none; cursor: pointer; font-weight: 500; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; }
.clear-platoons-btn { background: #ef4444; color: white; }
.clear-platoons-btn:hover { background: #dc2626; }
body.dark-theme .clear-platoons-btn { background: #b91c1c; }
body.dark-theme .clear-platoons-btn:hover { background: #991b1b; }
.btn-auto-distribute { background: #8b5cf6; color: white; }
.btn-auto-distribute:hover { background: #7c3aed; }
.btn-auto-distribute:disabled { opacity: 0.5; cursor: not-allowed; background: #6c757d !important; }
.btn-edit-selected-platoon, .btn-delete-selected-platoon { padding: 8px 12px; border-radius: 12px; border: none; cursor: pointer; font-weight: 500; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.2s; color: white; flex: 1; }
.btn-edit-selected-platoon { background: #3b82f6; }
.btn-edit-selected-platoon:hover { background: #2563eb; }
.btn-delete-selected-platoon { background: #dc2626; }
.btn-delete-selected-platoon:hover { background: #b91c1c; }

body.dark-theme .platoons-sidebar, body.dark-theme .platoons-main { background: #1e293b; }
body.dark-theme .platoon-item { background: #334155; color: #e2e8f0; }
body.dark-theme .platoon-item:hover { background: #475569; }
body.dark-theme .platoon-item.active { background: #2563eb; color: white; }
body.dark-theme .people-list li { background: #0f172a; color: #e2e8f0; }
body.dark-theme .people-list li .person-school { color: #94a3b8; }
body.dark-theme .people-grid { background: #0f172a; }
body.dark-theme .person-platoon { background: #334155; color: #cbd5e1; }
body.dark-theme .platoon-header { border-bottom-color: #334155; }