.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.label-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

.groups-checkbox-container {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    padding: 15px;
    background: var(--gray-light);
    transition: border-color 0.3s;
}

.groups-checkbox-container:focus-within {
    border-color: var(--accent);
}

.groups-checkbox-container::-webkit-scrollbar {
    width: 8px;
}

.groups-checkbox-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.groups-checkbox-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.groups-checkbox-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item:hover {
    border-color: var(--accent);
    background: #f8f9ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-border);
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:hover {
    border-color: var(--accent);
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-item label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 15px;
    user-select: none;
    transition: color 0.2s;
}

.checkbox-item input:checked + label {
    color: var(--accent);
    font-weight: 600;
}

.student-badge {
    font-size: 12px;
    color: var(--text-muted);
    background: #ecf0f1;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.checkbox-item input:checked + label .student-badge {
    background: #d4e9ff;
    color: var(--accent-hover);
    font-weight: 600;
}

.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.group-tag {
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.2);
}

.group-tag:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.student-count {
    background: var(--success);
    color: white;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(46, 204, 113, 0.2);
}

.student-count::before {
    content: '👥';
    font-size: 14px;
}

.groups-checkbox-container:empty::after {
    content: 'Немає доступних груп для вибору';
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

.empty-groups-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

#streamModal .modal-content {
    max-width: 650px;
}

#deleteModal .modal-content {
    max-width: 450px;
}

.delete-confirmation-text {
    padding: 20px 0;
    line-height: 1.6;
    color: var(--text-main);
}

.delete-stream-name {
    color: var(--danger);
    font-weight: bold;
}

.stream-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stream-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.stream-meta {
    font-size: 13px;
    color: var(--text-muted);
}

@keyframes checkboxCheck {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.checkbox-item input[type="checkbox"]:checked::after {
    animation: checkboxCheck 0.2s ease;
}

.groups-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-style: italic;
}

.groups-loading::before {
    content: '⏳';
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}